Info

You are currently browsing the Random Musings weblog archives for the day 1. June 2010.

June 2010
M T W T F S S
    Jul »
 123456
78910111213
14151617181920
21222324252627
282930  
Categories
Links
Archives

Archive for 1. June 2010

1&1 .htaccess

Having spent several hours on this, I think its appropriate that the first blog post should be about 1&1 .htaccess setup. The .htaccess,password file and group file configuration is standard as described here, however the catch is that the home directory is in fact the “htdocs” directory under the “Document Root” specified in the 1&1 control panel under Domain data.

If the Document root specified under the Domain data is /homepages/XX/XXXXX and the password/group files are in a directory called private in your root directory, then .htaccess needs to use the paths as specified below.

AuthUserFile /homepages/XX/XXXXX/htdocs/private/password.file
AuthGroupFile /homepages/XX/XXXXX/htdocs/private/groups.file

Also its a good idea to create a .htaccess file as below and place it in the private directory above

Order Deny,Allow
Deny from all

|