Article updated 27 February 2020 at 22 h 48 me

 

How was its HTTP to HTTPS website.
Obtain a certificate for free renewable let's encrypt each quarter.

Very simple and free subject to update your key all 3 month (maximum period for free).
SSL For Free – Free SSL Certificates
Add the following lines in your web server configuration file (Apache in our example).
You configure your server with virtual host, add and modify internal ip with that of your machine.


#NameVirtualHost 192.168.0.2
<VirtualHost 192.168.0.2>
ServerName www.french-interface.com
Redirect permanent / https://www.french-interface.com/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
</VirtualHost>

#NameVirtualHost 192.168.0.2
<VirtualHost 192.168.0.2>
ServerName french-interface.com
Redirect permanent / https://french-interface.com/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
</VirtualHost>

<VirtualHost 192.168.0.2:443>
Header always set Strict-Transport-Security "max-age=30000000; includeSubDomains; preload"
DocumentRoot d:/WWW/french-interface.ssl
ServerName french-interface.com
SSLEngine on
SSLCertificateFile C:\à modifier en fonction de votre répertoire\certificate.crt
SSLCertificateKeyFile C:\à modifier en fonction de votre répertoire\private.key
SSLCertificateChainFile C:\à modifier en fonction de votre répertoire\ca_bundle.crt
</VirtualHost>


0
0.0 rating
0 / 5 stars (0 view)
Excellent0%
Very good0%
Average0%
Poor0%
Horrible0%

Cancel

 

Rate this article

Leave a Reply

Your email address will not be published. Required fields are marked *