Voytek Eymont wrote:
> if I have directive in the httpd.conf requiring password for 'admin' access,
> how can I override it with a local .htaccess to ALLOW access with no
> password to a particular vhost ?
>
> I've looked on Apache docs, but I only found how to set access control,
> rather than disable, which is what I need
>
> this is what I have in the main httpd.conf
>
> <Directory /home/*/www/admin*>
> AllowOverride None
> AuthUserFile /etc/httpd/conf/.htaccess
> AuthGroupFile /null
> AuthName "Staff use only"
> AuthType Basic
> Require valid-user
> </Directory>
I am guessing here, without testing this.
1. In the above, change
AllowOverride None
Require valid-user
to
AllowOverride AuthConfig
<Limit GET POST>
Require valid-user
</Limit>
or better still
AllowOverride AuthConfig
<LimitExcept>
Require valid-user
</LimitExcept>
2. In the directory/location you wish, override the auth config
as follows:
<Location ....>
<LimitExcept>
</LimitExcept>
</Location>
Hopefully by removing the Require in the <Location ...>
section, there will no longer be an access restriction.
cheers
rickw
--
_________________________________
Rick Welykochy || Praxis Services
The power to choose
Where you want to go today
Abort Cancel Fail
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug