Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_ssl.c>
- <VirtualHost *:443>
- DocumentRoot "/var/www/nextcloud"
- ServerName mydomain
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- <Directory /var/www/nextcloud/>
- Options FollowSymlinks
- AllowOverride All
- Require all granted
- <IfModule mod_dav.c>
- Dav off
- </IfModule>
- SetEnv HOME /var/www/nextcloud
- SetEnv HTTP_HOME /var/www/nextcloud
- Satisfy Any
- </Directory>
- SSLCertificateFile /etc/letsencrypt/live/mydomain/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/mydomain/privkey.pem
- <IfModule mod_headers.c>
- Header always set Strict-Transport-Security "max-age=15768000; preload"
- </IfModule>
- Include /etc/letsencrypt/options-ssl-apache.conf
- </VirtualHost>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement