View Single Post
  #4 (permalink)  
Old 12-30-09, 12:12 AM
jackkk jackkk is offline
New Member
 
Join Date: Dec 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Firstly, you will need to know the full path to your document root.

Then, in the directory you want to protect with HTTP authentication, create or upload a file named: .htaccess (remember to include the "." before the "htaccess"). Alternatively you can upload a text file called htaccess.txt and rename this once it has been uploaded to .htaccess

The .htaccess file should contain the following 4 lines:

AuthType Basic
AuthName "Some Description"
AuthUserFile /[home dir full path]/httpdocs/.htpasswd
Require valid-user

For example, if your domain was example.com, then the third line would read:

AuthUserFile /usr/local/www/vhosts/example.com/httpdocs/.htpasswd


Good Luck !!!

___________________
<<<removed link>>>

Last edited by wirehopper; 12-30-09 at 05:41 AM. Reason: Removed link
Reply With Quote