Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfDefine SSL>
- <IfDefine !NOSSL>
- ##
- ## SSL Virtual Host Context
- ##
- <VirtualHost _default_:443>
- # General setup for the virtual host
- DocumentRoot "/srv/www/htdocs/nextcloud"
- ServerName sx5.whatis.id
- #ServerAdmin webmaster@example.com
- ErrorLog /var/log/apache2/error_log
- TransferLog /var/log/apache2/access_log
- # SSL Engine Switch:
- # Enable/Disable SSL for this virtual host.
- SSLEngine on
- # You can use per vhost certificates if SNI is supported.
- #SSLCertificateFile /etc/apache2/ssl.crt/cert1.pem
- SSLCertificateFile /etc/letsencrypt/live/sx5.whatis.id/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/sx5.whatis.id/privkey.pem
- #SSLCertificateChainFile /etc/apache2/ssl.crt/vhost-example-chain.crt
- <IfModule mod_headers.c>
- Header always set Strict-Transport-Security "max-age=15768000; preload"
- </IfModule>
- # Per-Server Logging:
- # The home of a custom SSL log file. Use this when you want a
- # compact non-error SSL logfile on a virtual host basis.
- CustomLog /var/log/apache2/ssl_request_log ssl_combined
- </VirtualHost>
- </IfDefine>
- </IfDefine>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement