User Tools

Site Tools


web

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web [2017/02/03 17:35]
frank
web [2017/02/03 17:44] (current)
frank
Line 1: Line 1:
-==== Level 3 Headline ​==== + 
-SSL certificates+==== SSL certificates ​==== 
 + 
 +=== free ssl certificate provider ===
 https://​letsencrypt.org/​ by https://​certbot.eff.org/​ https://​letsencrypt.org/​ by https://​certbot.eff.org/​
  
-=== web root favicon.ico is not working in ssl ===+=== configuration for apache2 === 
 +/​etc/​apache2/​sites-available/​default-ssl.conf 
 +<​code>​ 
 +        SSLEngine on 
 +        SSLCertificateFile ​ /​etc/​letsencrypt/​live/​dengxihe.com/​fullchain.pem 
 +        SSLCertificateKeyFile /​etc/​letsencrypt/​live/​dengxihe.com/​privkey.pem 
 +</​code>​ 
 + 
 +==== Redirect none ssl to ssl,  www to none-www ==== 
 +  * http://​dengxihe.com -> https://​dengxihe.com 
 +  * http://​www.dengxihe.com - > https://​dengxihe.com 
 +  * https://​www.dengxihe.com -> https://​dengxihe.com 
 + 
 +  - Add @ and www A records in DNS 
 +  - /​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   - move favicon.ico to sub dir - /images
   - add following to html<​code html>   - add following to html<​code html>
Line 9: Line 36:
 </​code>​ </​code>​
  
-==== customized favicon for moin ==== +=== moin === 
-Add following to wikiconfig.py<​code>​+Add following to wikiconfig.py<​code ​python>
 html_head = '''​ html_head = '''​
 <link rel="​shortcut icon" href="/​images/​favicon.ico">​ <link rel="​shortcut icon" href="/​images/​favicon.ico">​
web.1486172123.txt.gz · Last modified: 2017/02/03 17:35 by frank