Changes

From SME Server
Jump to navigationJump to search
649 bytes removed ,  23:11, 30 June 2015
Remove custom template DirectoryIndex now in latest smeserver-webapps-common
Line 21: Line 21:  
  yum install smeserver-webapps-common --enablerepo=fws
 
  yum install smeserver-webapps-common --enablerepo=fws
   −
  −
====custom template====
  −
Once the sub domain and ibay are created and smeserver-webapps-common is installed, we need to create a custom template to add an important directive to the virtual host. Firstly we need to create the template-custom directory:
  −
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/WebAppVirtualHost
  −
and create the template fragment:
  −
nano -w /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/WebAppVirtualHost/60DirectoryIndex
  −
  −
and add the following content and save the file:
  −
  −
{
  −
my $dindex = $domain->prop('DirectoryIndex') || '';
  −
if ($dindex ne ' '){
  −
    $OUT .= "    DirectoryIndex $dindex\n";
  −
}
  −
}
      
====Virtual host====
 
====Virtual host====
Line 52: Line 37:     
From here you can visit your new domain ''http://files.myserver.com'' and see the new indexer in action. Everything you upload to the ''depot'' ibay will be shown by the h5ai indexer, including subdirectories like in the screenshot above.
 
From here you can visit your new domain ''http://files.myserver.com'' and see the new indexer in action. Everything you upload to the ''depot'' ibay will be shown by the h5ai indexer, including subdirectories like in the screenshot above.
 +
    
==Configuration==
 
==Configuration==

Navigation menu