Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_ssl.c>
- <VirtualHost _default_:443> #*:443
- ServerAdmin [email protected]
- ServerName example.com
- DocumentRoot /var/www/example.com/
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- <Directory /var/www/example.com/>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Require all granted
- </Directory>
- # Uncomment the below after you complete SSL installation from terminal #
- #RewriteEngine on
- #RewriteCond %{SERVER_NAME} =example.com
- #RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
- Include /etc/letsencrypt/options-ssl-apache.conf
- # Enable/Disable SSL for this virtual host.
- SSLEngine on
- SSLProxyEngine on
- #SSLVerifyClient require
- #SSLVerifyDepth 10
- <FilesMatch "\.(cgi|shtml|phtml|php)$">
- SSLOptions +StdEnvVars
- </FilesMatch>
- <Directory /usr/lib/cgi-bin>
- SSLOptions +StdEnvVars
- </Directory>
- SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
- </VirtualHost>
- </IfModule>
- # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Add Comment
Please, Sign In to add comment