Guest User

Untitled

a guest
Apr 4th, 2016
148
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:80>
  2. ServerName name.ddns.net
  3. DocumentRoot /var/www/owncloud
  4. Redirect permanent / https://name.ddns.net
  5.  
  6. </VirtualHost>
  7.  
  8. <VirtualHost *:443>
  9. ServerName name.ddns.net
  10. SSLEngine on
  11. SSLCertificateFile /etc/apache2/ssl/owncloud.pem
  12. SSLCertificateKeyFile /etc/apache2/ssl/owncloud.key
  13. DocumentRoot /var/www/owncloud/
  14.  
  15. <Directory /var/www/owncloud>
  16. AllowOverride All
  17. Options +FollowSymLinks
  18. Order Deny,Allow
  19. Allow from all
  20. SSLRequireSSL
  21. </Directory>
  22.  
  23. <IfModule mod_headers.c>
  24. Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
  25. </IfModule>
  26. </VirtualHost>
RAW Paste Data