Directory access control with Apache: do I need to use a specific .htaccess?

Posted by Mirror51 on Pro Webmasters See other posts from Pro Webmasters or by Mirror51
Published on 2011-05-21T15:11:57Z Indexed on 2011/11/19 2:08 UTC
Read the original article Hit count: 193

Filed under:
|
|
|

I have an Apache webserver, and in the Apache configuration, I have

Alias /backups "/backups"
<Directory "/backups">
    AllowOverride None
    Options Indexes
    Order allow,deny
    Allow from all
</Directory>

I can access files via http://127.0.0.1/backups. The problem is everyone can access that.

I have a web interface, e.g. http://localhost/adminm that is protected with htaccess and password.

Now I don't want separate .htaccess and .htpasswd for /backups, and I don't want a second password prompt when a user clicks on /backups in the web interface. Is there any way to use same .htaccess and .htpasswd for the backups directory?

© Pro Webmasters or respective owner

Related posts about linux

Related posts about apache