User Tools

Site Tools


guides:install:apache_ssl_letsencrypt

Differences

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

Link to this comparison view

guides:install:apache_ssl_letsencrypt [2016/04/16 18:10] (current)
michaelc created
Line 1: Line 1:
 +====== Setup Apache SSL LetsEncrypt ======
  
 +<​code>​
 +<​VirtualHost *:443>
 +ServerName mydomainname.com
 +ServerAlias www.mydomainname.com
 +DocumentRoot /​www/​hosts/​mydomainname.com/​html
 +
 +<​Directory /​www/​hosts/​mydomainname.com/​html>​
 +   ​Options FollowSymLinks
 +   ​AllowOverride All
 +   ​Require all granted
 +</​Directory>​
 +
 +ErrorLog ${APACHE_LOG_DIR}/​error.log
 +CustomLog ${APACHE_LOG_DIR}/​access.log combined
 +
 +SSLEngine on
 +SSLCertificateFile ​   /​etc/​letsencrypt/​live/​www.mydomainname.com/​cert.pem
 +SSLCertificateKeyFile /​etc/​letsencrypt/​live/​www.mydomainname.com/​privkey.pem
 +SSLCertificateChainFile /​etc/​letsencrypt/​live/​www.mydomainname.com/​fullchain.pem
 +
 +<​FilesMatch "​\.(cgi|shtml|phtml|php)$">​
 +   ​SSLOptions +StdEnvVars
 +</​FilesMatch>​
 +
 +BrowserMatch "MSIE [2-6]" \
 +nokeepalive ssl-unclean-shutdown \
 +downgrade-1.0 force-response-1.0
 +BrowserMatch "MSIE [17-9]"​ ssl-unclean-shutdown
 +
 +</​VirtualHost>​
 +</​code>​
guides/install/apache_ssl_letsencrypt.txt · Last modified: 2016/04/16 18:10 by michaelc