ssl secure https and redirection
NameVirtualHost *:80 NameVirtualHost *:443
<VirtualHost *:80>
DocumentRoot /usr/share/webmail ServerName webmail.rmohan.com RewriteEngine on RewriteCond %{HTTPS} !^on$ [NC] RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L] </VirtualHost>
<VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/ssl/apache2/otherserver.crt SSLCertificateKeyFile /etc/ssl/apache2/otherserver.key ServerName webmail.rmohan.com SSLOptions StrictRequire SSLProtocol all -SSLv2 </VirtualHost>
Recent Comments