»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2003, 11:53 PM   #1 (permalink)
Registered User
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Western PA
Posts: 2,296
sixf00t4 is on a distinguished road
Send a message via ICQ to sixf00t4 Send a message via AIM to sixf00t4 Send a message via Yahoo to sixf00t4
.htaccess not working?

i can't figure out why it isnt giving me a log in box. the .htaccess file is in the folder, it is spelled correctly, and contains
Quote:
AuthName "Protected Area Name"
AuthUserFile /.htpasswd
AuthType Basic
Require admin
when i go to that directory, it shows me the index file. why isnt it prompting me?

i am on apache, and the httpd.conf file is set for .htaccess files.

__________________
[url=http://joshuadhall.com]My blog[/url]
sixf00t4 is offline   Reply With Quote
Old 10-22-2003, 11:54 PM   #2 (permalink)
Banned
 
Join Date: Nov 2002
Location: Seattle, WA
Posts: 3,289
iNeb is on a distinguished road
Send a message via AIM to iNeb
Did you use the .htpassword file?

http://thunder.prohosting.com/~sampi...htaccess.shtml
http://www.google.com/search?hl=en&i...ccess+tutorial

Last edited by iNeb; 10-22-2003 at 11:58 PM.
iNeb is offline   Reply With Quote
Old 10-22-2003, 11:59 PM   #3 (permalink)
Registered User
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Western PA
Posts: 2,296
sixf00t4 is on a distinguished road
Send a message via ICQ to sixf00t4 Send a message via AIM to sixf00t4 Send a message via Yahoo to sixf00t4
ummm what do you mean??

i have the password file (.htpasswd) that i created in the directory. and the .htaccess file points to it in the second line.
__________________
[url=http://joshuadhall.com]My blog[/url]
sixf00t4 is offline   Reply With Quote
Old 10-28-2003, 04:38 PM   #4 (permalink)
Registered User
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Western PA
Posts: 2,296
sixf00t4 is on a distinguished road
Send a message via ICQ to sixf00t4 Send a message via AIM to sixf00t4 Send a message via Yahoo to sixf00t4
still not working, what is the syntax to do it in the httpd.conf file?

Code:
<Directory /usr/local/apache/htdocs/sekrit>
  AuthType Basic
  AuthName login
  AuthUserFile /www/passwd/users
  Require user admin
  Order allow,deny
  Satisfy any
</Directory>
is what i have now.
__________________
[url=http://joshuadhall.com]My blog[/url]
sixf00t4 is offline   Reply With Quote
Old 11-16-2003, 03:14 PM   #5 (permalink)
Registered User
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Champaign, IL
Posts: 3,253
jkrohn is on a distinguished road
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
Ok, first off

AuthType Basic
AuthName "Protected Area Name"
AuthUserFile /complete/path/to/.htpasswd
require user admin

The way you have it, .htpassword is resideing in root. (According to your script).

Once you have .htaccess in place set the password.
htpasswd -c .htpasswd admin

Jkrohn
__________________
Jkrohn
jkrohn is offline   Reply With Quote
Old 11-16-2003, 05:47 PM   #6 (permalink)
Registered User
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Western PA
Posts: 2,296
sixf00t4 is on a distinguished road
Send a message via ICQ to sixf00t4 Send a message via AIM to sixf00t4 Send a message via Yahoo to sixf00t4
i do have the password file in rot. that is where i want it.

i ended up just modifying the httpd.cof and got auth thru that. thanks though jkrohn
__________________
[url=http://joshuadhall.com]My blog[/url]
sixf00t4 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 01:13 AM.