November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

ssl secure https and redirection

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>

 

 

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>