Info

You are currently browsing the archives for the 1&1 category.

February 2012
M T W T F S S
« Jul    
 12345
6789101112
13141516171819
20212223242526
272829  
Categories
Links
Archives

Archive for the 1&1 Category

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

|