User Tools

Site Tools


Sidebar


guides:install:apache_ssl_letsencrypt

Setup Apache SSL LetsEncrypt

<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>
guides/install/apache_ssl_letsencrypt.txt · Last modified: 2016/04/16 18:10 by michaelc