Changes

From SME Server
Jump to navigationJump to search
385 bytes added ,  01:13, 10 November 2014
added section, improved text layout
Line 44: Line 44:  
{{Warning box|Please choose your AuthUserFile password file name carefully so that it does not correspond with existing filenames. Do not name the file passwd as that filename already exists, and you will overwrite the original system file and make your server inaccessible. Choose a meaningful name like ibaypasswords or similar.}}
 
{{Warning box|Please choose your AuthUserFile password file name carefully so that it does not correspond with existing filenames. Do not name the file passwd as that filename already exists, and you will overwrite the original system file and make your server inaccessible. Choose a meaningful name like ibaypasswords or similar.}}
   −
==== Procedure - authentication against a user password file ====
+
===Examples===
 +
 
 +
====Example 1 - Basic layout of fragment for a redirect rewrite directive===
 +
 
 +
Create a custom httpd.conf template fragment that looks like this (replace with appropriate details)
 +
 
 +
<Directory /home/e-smith/files/ibays/youribay/html>
 +
RewriteEngine On
 +
RewriteRule whatever
 +
...
 +
</Directory>
 +
 
 +
Then
 +
expand-template /etc/httpd/conf/httpd.conf
 +
service httpd-e-smith restart
 +
 
 +
==== Example 2 - authentication against a user password file ====
    
Determine the contents of your .htacess file to be used in the fragment, as mentioned previously.  
 
Determine the contents of your .htacess file to be used in the fragment, as mentioned previously.  
Line 125: Line 141:     
If you use the -c switch when entering additional user details you will overwrite the password file completely and only have the one user entry there.
 
If you use the -c switch when entering additional user details you will overwrite the password file completely and only have the one user entry there.
      
==== Procedure - authentication against all sme users ====
 
==== Procedure - authentication against all sme users ====
624

edits

Navigation menu