Pablo G

How Can I Force My Apache2 Connection to be Over SSL?

Asked by Pablo G 2 years ago apache ssl connection


Joel Reyes
0
 
With the following script you're going to be able to force all connections from Apche2 over SSL for MORE security.

# Force all connections to this host/virtualhost to be over SSL.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>

by Joel Reyes 2 years ago

Answer this question

How Can I Force My Apache2 Connection to be Over SSL?

0 errors found:

 
0