httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Hirt <bh...@me.com>
Subject Re: [users@httpd] Basic authentication for a virtual/rewritten URL?
Date Mon, 25 Oct 2010 13:38:47 GMT
Use <Location> instead of <Directory>

Brian Hirt
bhirt@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-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message