Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-12-2004, 10:26 PM   PM User | #1
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
htaccess?

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
Jason is offline   Reply With Quote
Old 05-13-2004, 04:33 AM   PM User | #2
Unit
Regular Coder

 
Join Date: Feb 2004
Location: WA
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Unit is an unknown quantity at this point
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
__________________
Nobody is Perfect. I am Nobody.
Unit is offline   Reply With Quote
Old 05-13-2004, 08:48 PM   PM User | #3
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
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
Jason is offline   Reply With Quote
Old 05-14-2004, 01:53 AM   PM User | #4
Unit
Regular Coder

 
Join Date: Feb 2004
Location: WA
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Unit is an unknown quantity at this point
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.
__________________
Nobody is Perfect. I am Nobody.
Unit is offline   Reply With Quote
Old 05-14-2004, 09:41 PM   PM User | #5
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
alright, I took the AllowOverride None off and it didn't make a difference...what do I do now?

Jason
Jason is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:01 AM.


Advertisement
Log in to turn off these ads.