Use <Location> instead of <Directory> Brian Hirt bh...@me.com
On Oct 25, 2010, at 7:14 AM, Sacha Varma wrote: > Sorry to interrupt you fine folks, I wasn't able to google up the answer to > this. > > Is it possible to configure Apache to do basic authentication for a URL that > doesn't correspond to a physical location in the filesystem (e.g. because it > is rewritten to be served by CGI)? > > It appears that the authentication directives are only valid in Directory and > htacces contexts, so I'm not able to password-protect a Location. > > On a filthy hunch I tried creating the directory in the filesystem that would > correspond to the URL, and password-protecting that via a Directory > configuration block, but that didn't work. > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org