LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   protected directories (https://www.linuxquestions.org/questions/linux-security-4/protected-directories-133588/)

tommytomato 01-11-2004 02:17 AM

protected directories
 
protected directories

hello tommy here

my .htaccess file is in the folder i wish to protected

AuthType Basic
AuthName Authentication Required!!
AuthUserFile /var/www/secure/.htpasswd
Require user <username>

after creating the .htaccess file i put the following command in

htpasswd -c /someotherdir/.htpasswd <username>

it asked for a password so that seem to work.

it created my usr and pass in the.htpasswd file.

user_name:xxxxxxxxxxxxx


I restarted the httpd and no go..
am i missing some thing...

TT :study:

david_ross 01-11-2004 08:26 AM

Make sure you have set:
AllowOverride AuthConfig

For that directory in httpd.conf. You only need to restart httpd when changes are made to httpd.conf

stickman 01-11-2004 10:34 PM

Also the "/someotherdir/.htpasswd" should be the same as what is specified by AuthUserFile in your .htaccess.


All times are GMT -5. The time now is 09:41 PM.