Forum Moderators: phranque

Message Too Old, No Replies

password protection on sub-directories

         

Masood

6:39 am on Mar 12, 2007 (gmt 0)

10+ Year Member



I want to made sub-directories as password protected by using .htacces and .htpasswd files. Like user can access to only those directories for which they have access allowed. but when i have made entry in apache conf ( httpd.conf ) as follows

<Directory /export/home/apache2/htdocs/parent_directory/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>

The subdirectories become unvisible on webpage . Sub directories are present in the parent directory . Every sub directory has .htaccess and .htpasswd file.

kindly advice