LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Help with .htpasswd and .htaccess (https://www.linuxquestions.org/questions/linux-general-1/help-with-htpasswd-and-htaccess-51521/)

MikeeX 03-24-2003 04:00 PM

Help with .htpasswd and .htaccess
 
Okay for some reason I am not able to get this to work.

I added the .htpasswd file into a directory above the /www. In the .htpasswd file I added the following lines

Quote:


mikee : password

now in the directory I want to password protect I put a .htaccess file in the directory. And put in the following info

Quote:


AuthUserFile /home/mikeex/safedir/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

require valid-user

Doesn't work! Am I doing something wrong? If you could help that would be greatly appreciated!

trickykid 03-24-2003 04:20 PM

Try following these steps:

http://www.apacheweek.com/features/userauth

jstu 03-24-2003 04:20 PM

Check the httpd.conf file and find the line that says AllowOverride that corresponds to the document root and if it says none change it to AuthConfig.

MikeeX 03-25-2003 10:41 AM

jstu: i don't host this server, so I don't have access to the httpd.conf file.

trickykid: This looks like a great read, thanks for the link.

I thank you both for your replies. Have a good one.


All times are GMT -5. The time now is 08:15 AM.