Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName name.ddns.net
- DocumentRoot /var/www/owncloud
- Redirect permanent / https://name.ddns.net
- </VirtualHost>
- <VirtualHost *:443>
- ServerName name.ddns.net
- SSLEngine on
- SSLCertificateFile /etc/apache2/ssl/owncloud.pem
- SSLCertificateKeyFile /etc/apache2/ssl/owncloud.key
- DocumentRoot /var/www/owncloud/
- <Directory /var/www/owncloud>
- AllowOverride All
- Options +FollowSymLinks
- Order Deny,Allow
- Allow from all
- SSLRequireSSL
- </Directory>
- <IfModule mod_headers.c>
- Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
- </IfModule>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement