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