PDA

View Full Version : htaccess?


Jason
05-12-2004, 11:26 PM
I know this topic has been discussed before but I can't get mine to work. So ok, I am running apache 1.3 and I just created a file .htaccess in my web-root directory which is /www/htdocs/

/www/htdocs/.htaccess

AuthType Basic
AuthName "Secure Directory?"
AuthUserFile /www/secure_passwd/.htpasswd


require valid-user

and then I created a file called .htpasswd using the command from apache called htpasswd by typing
/www/bin/htpasswd -c /www/secure_passwd/.htpasswd jason

so I can view the file and see my encrypted file but when I got to my webservers index.html I don't get prompted for a password. What did I do wrong? Do I have to mess with my httpd.conf file? I don't get why its not working and I can't seem to see a solution in google. ideas? thanks..

Jason

Unit
05-13-2004, 05:33 AM
I would suggest reading through this doc. specially the Troubleshooting section. Let us know if that is indeed your problem.

http://httpd.apache.org/docs/howto/htaccess.html

Jason
05-13-2004, 09:48 PM
sorry for having posted in the wrong forum...

Thats the doc I used to create my .htaccess/.htpasswd files but its not working like I thought it would...

Jason

Unit
05-14-2004, 02:53 AM
That's the reason I asked you to read that doc :)

Apache by default says Override None in its configuration... you may want to take that off.

Jason
05-14-2004, 10:41 PM
alright, I took the AllowOverride None off and it didn't make a difference...what do I do now?

Jason