Changes

Jump to navigation Jump to search
763 bytes added ,  18:19, 1 April 2013
no edit summary
Line 2: Line 2:     
==Apache Related Commands==
 
==Apache Related Commands==
 
+
===Apache options===
 
*Expand <b>httpd.conf</b> template:
 
*Expand <b>httpd.conf</b> template:
   Line 48: Line 48:  
Restart httpd.
 
Restart httpd.
 
  /etc/init.d/httpd-e-smith restart
 
  /etc/init.d/httpd-e-smith restart
 +
===https forced redirection using custom template===
 +
see [[Https_redirection]]
 +
If it does not already exist then create the following directory
 +
 +
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
 +
 +
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
 +
 +
nano 60redir-ibayname1
 +
 +
Paste or type the following code including the brackets, replacing ibayname with the name of your ibay
 +
 +
{
 +
if ($port ne "443")
 +
{
 +
$OUT .= <<'HERE';
 +
## Redirect Web Address to Secure Address
 +
RewriteEngine on
 +
RewriteRule ^/ibayname https://%{HTTP_HOST}/ibayname
 +
 +
## End Of Redirect
 +
HERE
 +
}
 +
}
 +
 +
Save the file & exit by Ctrl+x
 +
 +
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
 +
 +
/etc/init.d/httpd restart
    
==MySQL==
 
==MySQL==

Navigation menu