Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

HOWTO: Configure htaccess/htpasswd security on GoDaddy.com

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  DocumentRoot Rights Issue  
Author Message
MarkR

External


Since: May 27, 2005
Posts: 1



(Msg. 1) Posted: Fri May 27, 2005 6:10 pm
Post subject: HOWTO: Configure htaccess/htpasswd security on GoDaddy.com
Archived from groups: alt>apache>configuration (more info?)

Hi:

Couldn't find this info anywhere, so I thought I'd share how to enable
..htaccess/htpasswd security on a web site hosted on GoDaddy.com.

Assuming a hosted web site www.mysite.com which you connect to using the FTP
username johndoe, you should create the following .htaccess file in the
directory you wish to secure:

------- begin .htaccess -------
AuthUserFile /home/content/J/O/H/JOHNDOE/html/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic

<limit GET POST>
require valid-user
</limit>
-------- end .htaccess -----------

replacing the capital "J/O/H/JOHNDOE" with lowercase versions of the first
three letters of your username followed by your whole username. This path is
the absolute pathn you see when you first log in to your FTP site, and the
root directory of www.mysite.com.

Then create a .htpasswd file using the Apache htpasswd utility or one of the
many internet .htpasswd generators, and save it at the location you
specified above. If you're making it by hand, the format for the file is
username:passwordhash, where passwordhash is generated using the Unix
<crypt> command.

Good luck.
/m

 >> Stay informed about: HOWTO: Configure htaccess/htpasswd security on GoDaddy.com 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]