Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- DocumentRoot "/var/www/nextcloud/"
- ServerName cloud.domain.co.uk
- <IfModule mod_headers.c>
- Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
- </IfModule>
- <Directory /var/www/nextcloud/>
- Require all granted
- AllowOverride All
- Options FollowSymLinks MultiViews
- <IfModule mod_dav.c>
- Dav off
- </IfModule>
- </Directory>
- </VirtualHost>
- <VirtualHost *:443>
- DocumentRoot "/var/www/nextcloud/"
- ServerName cloud.domain.co.uk
- <IfModule mod_headers.c>
- Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
- </IfModule>
- <Directory "/var/www/nextcloud/">
- Require all granted
- AllowOverride All
- Options FollowSymLinks MultiViews
- <IfModule mod_dav.c>
- Dav off
- </IfModule>
- </Directory>
- SSLEngine on
- SSLCertificateFile /etc/letsencrypt/live/cloud.domain.co.uk/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/cloud.domain.co.uk/privkey.pem
- Include /etc/letsencrypt/options-ssl-apache.conf
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement