Changes

From SME Server
Jump to navigationJump to search
1,135 bytes added ,  22:00, 6 October 2013
no edit summary
Line 81: Line 81:  
  </Directory>
 
  </Directory>
   −
then do
+
save by ctrl+x
 +
 
 +
{{Note box|Since with SME Server 8.0 it lacks some apache modules to authenticate users, we have to  add them manually.}}
 +
nano /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule55
 +
 
 +
  #---- added for use of htaccess ----
 +
{
 +
    $OUT .= load_modules(qw(
 +
auth_basic
 +
authn_file
 +
authz_groupfile
 +
));
 +
}
 +
 
 +
save by ctrl+x and then do
    
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
Line 137: Line 151:  
  mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 
  mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 
  cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 
  cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
  pico -w 50AddSecureIbayFolder
+
  nano -w 50AddSecureIbayFolder
 
   
 
   
 
Assuming we want to secure an ibay subfolder called
 
Assuming we want to secure an ibay subfolder called
Line 156: Line 170:  
(the "valid-user" setting will allow any valid sme user to gain access)
 
(the "valid-user" setting will allow any valid sme user to gain access)
   −
then do
+
{{Note box|Since with SME Server 8.0 it lacks some apache modules to authenticate users, we have to  add them manually.}}
 +
nano /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule55
 +
 
 +
  #---- added for use of htaccess ----
 +
{
 +
    $OUT .= load_modules(qw(
 +
auth_basic
 +
authn_file
 +
authz_groupfile
 +
));
 +
}
 +
 
 +
save by ctrl+x and then do
    
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
Line 171: Line 197:  
  mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 
  mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 
  cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 
  cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
  pico -w 50AddSecureIbayFolder
+
  nano -w 50AddSecureIbayFolder
 
   
 
   
 
Assuming we want to secure an ibay subfolder called
 
Assuming we want to secure an ibay subfolder called
Line 190: Line 216:  
(where admin, smeusername1, smeusername2 etc are valid users on the sme server)
 
(where admin, smeusername1, smeusername2 etc are valid users on the sme server)
   −
then do
+
{{Note box|Since with SME Server 8.0 it lacks some apache modules to authenticate users, we have to  add them manually.}}
 +
nano /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule55
 +
 
 +
  #---- added for use of htaccess ----
 +
{
 +
    $OUT .= load_modules(qw(
 +
auth_basic
 +
authn_file
 +
authz_groupfile
 +
));
 +
}
 +
 
 +
save by ctrl+x and then do
    
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
Line 227: Line 265:     
  rm /etc/passwordfilename
 
  rm /etc/passwordfilename
  rm /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf 50AddSecureIbayFolder
+
  rm /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/50AddSecureIbayFolder
 +
rm /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule55
 
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
 
  sv t /service/httpd-e-smith
 
  sv t /service/httpd-e-smith

Navigation menu