User Tools

Site Tools


web

This is an old revision of the document!


SSL certificates

free ssl certificate provider

configuration for apache2

/etc/apache2/sites-available/default-ssl.conf

        SSLEngine on
        SSLCertificateFile  /etc/letsencrypt/live/dengxihe.com/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/dengxihe.com/privkey.pem

Redirect none ssl to ssl, www to none-www

  • http:/www.dengxihe.com - > https://dengxihe.com * https://www.dengxihe.comhttps://dengxihe.com /etc/apache2/sites-available/000-default.conf <code> RewriteEngine on RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301] </code> ==== web root favicon.ico is not working in ssl === === web root === - move favicon.ico to sub dir - /images - add following to html<code html> <link rel=“shortcut icon” href=“/images/favicon.ico”> </code> === moin === Add following to wikiconfig.py<code python> html_head = ' <link rel=“shortcut icon” href=“/images/favicon.ico”> ' </code>
web.1486172614.txt.gz · Last modified: 2017/02/03 17:43 by frank