Changes

From SME Server
Jump to navigationJump to search
1 byte added ,  15:04, 14 August 2014
Line 20: Line 20:  
Initially you will need to determine the contents of your .htacess file to be used in the fragment. Refer to the .htaccess web site links below for more details but a basic .htaccess file would contain the following (see specific examples in following sections):
 
Initially you will need to determine the contents of your .htacess file to be used in the fragment. Refer to the .htaccess web site links below for more details but a basic .htaccess file would contain the following (see specific examples in following sections):
   −
AuthUserFile /etc/passwordfilename
+
AuthUserFile /etc/passwordfilename
 
+
AuthGroupFile /dev/null
AuthGroupFile /dev/null
+
AuthName "My Site Security Group"
 
+
AuthType Basic
AuthName "My Site Security Group"
+
<Limit GET>
 
+
order deny,allow
AuthType Basic
+
require valid-user
 
+
</Limit>
<Limit GET>
  −
 
  −
order deny,allow
  −
 
  −
require valid-user
  −
 
  −
</Limit>
      
The AuthUserFile will be the location on your sme server of the htaccess password file. You can choose whichever name and location you want, but the password file SHOULD NOT be placed in a publicly accessible area ie NOT in web site folders. Note that this file is created using the htpasswd command (see steps later).
 
The AuthUserFile will be the location on your sme server of the htaccess password file. You can choose whichever name and location you want, but the password file SHOULD NOT be placed in a publicly accessible area ie NOT in web site folders. Note that this file is created using the htpasswd command (see steps later).

Navigation menu