Forum Moderators: phranque

Message Too Old, No Replies

Godaddy ¦ Basic HTTP Authentication

Correct .htaccess and .htpasswd file

         

jomoweb

8:48 pm on Sep 27, 2004 (gmt 0)

10+ Year Member



I am trying to set up basic HTTP authentication on a website hosted with godaddy. I can get the login prompt to appear, but can't seem to login with username and password. At first, I thought it was an incorrect path, but after hearing the path structure (Full Server Path: home/content/u/s/e/username/html/.htpasswd If my username were godaddy the three letters would be as follows: home/content/g/o/d/godaddy/html).
from godaddy's customer support, the path looks correct

Contents of .htaccess file:

AuthUserFile /home/content/u/s/e/username/html/.htpasswd
AuthGroupFile /dev/null
AuthName "The Pool"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>

Contents of .htpasswd file:

#*$!:xxxxxxxx

[edited by: jomoweb at 9:41 pm (utc) on Sep. 27, 2004]

claus

8:56 pm on Sep 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...please remove all specifics asap for chrissake! you just don't want to post your usernames and passwords anywhere on the web - ever. And it's probably against the TOS too - posting your web address definitely is.

These things can be tricky - first off, the password needs to be encrypted (in the .htpasswd file). It should not spell "abcd" but in stead a string of numbers and letters - you should search for a thingy called MD5 on google, that's what you need to make the encrypted password. I do believe that there are web pages that can do the encryption for you if you are on a windows platform.

Also, i think you might have to take the /u/s/e/ from the path literally, ie. not change that part.

jomoweb

9:32 pm on Sep 27, 2004 (gmt 0)

10+ Year Member



Claus,

Magnificent-- it was the encryption. This is odd b/c on my personal apache server, I can get it to work by spelling it abc...like that. Huh-- Thanks!