httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Dessent <br...@dessent.net>
Subject Re: [users@httpd] Apache/Redhat Simple AuthType Basic not working :( help please
Date Fri, 02 Jan 2004 22:24:02 GMT
Ben Yau wrote:

> <Directory />
> AuthType Basic
> AuthName "ReportsAutoRebates"
> AuthUserFile /home/www/reports.auto-rebates.com/.rarpasswd
> Require valid-user
> </Directory>
> </VirtualHost>

Are you sure you want a Directory container and not a Location
container?  Directory referrs to the filesystem, whereas Location refers
to URLs.  So if you want authentication for every URL of a virtual host,
I'd use "<Location />" in that vhost container.  But that doesn't
actually explain why the above works for one vhost and not another.

Brian

---------------------------------------------------------------------
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