Author |
Message |
Zack
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21
|
Posted:
Sun Nov 23, 2003 10:04 am (21 years, 3 months ago) |
  |
hi
i have setup .htaccess and .htpasswd but when i try and access my site the login box pops up like its meant to but when i type in my username and password it doesnt work the box carries on poping up 3 tmes and then says:
Quote: | Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required |
Can Someone Help Please!  |
|
|
    |
 |
adam
Forum Moderator & Developer

Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Sun Nov 23, 2003 10:54 am (21 years, 3 months ago) |
  |
can you show us the code you put in .htaccess? (don't post .htpasswd though ) |
________________________________ It's turtles all the way down... |
|
     |
 |
jayant
Team Member


Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India
|
Posted:
Sun Nov 23, 2003 1:04 pm (21 years, 3 months ago) |
  |
make sure the path to .htapasswd is correct. to avoid confusion use absolute path. akso, have you restricted the page u r trying to access to a perticular group / user and using the other username/password combo.
the username and password are case sensitive.
r u sure u generated the correct password. of use the 4WH .htpasswd generator. |
________________________________ Jayant Kumar
Member of the 4WebHelp Team
Nibble Guru - Computing Queries Demystified
GZip/ Page Compression Test |
|
       |
 |
Zack
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21
|
Posted:
Wed Nov 26, 2003 7:23 pm (21 years, 3 months ago) |
  |
this is my .htaccess:
Code: | AuthUserFile /.htpasswd
AuthName "Please Log On"
AuthType Basic
require valid-user |
|
|
|
    |
 |
adam
Forum Moderator & Developer

Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Wed Nov 26, 2003 8:36 pm (21 years, 3 months ago) |
  |
the AuthUserFile line is the problem, what you've got there is telling the server to look at the root of the filesystem for the file - where is .htpasswd on the filesystem, or in relation to .htaccess? |
________________________________ It's turtles all the way down... |
|
     |
 |
Zack
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21
|
Posted:
Thu Nov 27, 2003 5:50 pm (21 years, 3 months ago) |
  |
it is in the main/home section. |
|
|
    |
 |
jayant
Team Member


Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India
|
Posted:
Fri Nov 28, 2003 9:31 am (21 years, 3 months ago) |
  |
|
       |
 |
Zack
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21
|
Posted:
Fri Nov 28, 2003 7:52 pm (21 years, 3 months ago) |
  |
|
    |
 |
adam
Forum Moderator & Developer

Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Nov 28, 2003 9:25 pm (21 years, 3 months ago) |
  |
in that case you can probably just put:
Code: | AuthUserFile .htpasswd |
or, failing that:
Code: | AuthUserFile ./.htpasswd |
|
________________________________ It's turtles all the way down... |
|
     |
 |
Zack
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21
|
Posted:
Sat Nov 29, 2003 10:44 am (21 years, 3 months ago) |
  |
its still not working. i think its the server.
does anyone know a good server that it will work on.
i want a FREE server. |
|
|
    |
 |
adam
Forum Moderator & Developer

Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Sat Nov 29, 2003 11:05 am (21 years, 3 months ago) |
  |
most free services disable things like .htaccess...usually if you want any useful features you have to pay |
________________________________ It's turtles all the way down... |
|
     |
 |
Zack
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21
|
Posted:
Sat Nov 29, 2003 11:08 am (21 years, 3 months ago) |
  |
ok do u know any cheap one then? |
|
|
    |
 |
adam
Forum Moderator & Developer

Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Sat Nov 29, 2003 11:41 am (21 years, 3 months ago) |
  |
I happen to work for one (ValcatoHosting.com), also WebHostingTalk is a good place to go if you want to get a few good offers.
just out of interest, where are you hosted now? |
________________________________ It's turtles all the way down... |
|
     |
 |
Zack
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21
|
Posted:
Sat Nov 29, 2003 11:43 am (21 years, 3 months ago) |
  |
|
    |
 |
adam
Forum Moderator & Developer

Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Sat Nov 29, 2003 1:19 pm (21 years, 3 months ago) |
  |
hmm...on their home page they list full support for .htaccess, so you shouldn't need to switch to someone else. what exactly happens when you visit the password protected directory? |
________________________________ It's turtles all the way down... |
|
     |
 |
|