Advertisement
Guest User

Untitled

a guest
Dec 31st, 2016
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1.  
  2. <IfModule mod_ssl.c>
  3. <VirtualHost *:443>
  4. DocumentRoot "/var/www/nextcloud"
  5. ServerName mydomain
  6.  
  7. ErrorLog ${APACHE_LOG_DIR}/error.log
  8. CustomLog ${APACHE_LOG_DIR}/access.log combined
  9.  
  10. <Directory /var/www/nextcloud/>
  11. Options FollowSymlinks
  12. AllowOverride All
  13. Require all granted
  14.  
  15. <IfModule mod_dav.c>
  16. Dav off
  17. </IfModule>
  18.  
  19. SetEnv HOME /var/www/nextcloud
  20. SetEnv HTTP_HOME /var/www/nextcloud
  21. Satisfy Any
  22.  
  23. </Directory>
  24.  
  25. SSLCertificateFile /etc/letsencrypt/live/mydomain/fullchain.pem
  26. SSLCertificateKeyFile /etc/letsencrypt/live/mydomain/privkey.pem
  27. <IfModule mod_headers.c>
  28. Header always set Strict-Transport-Security "max-age=15768000; preload"
  29. </IfModule>
  30. Include /etc/letsencrypt/options-ssl-apache.conf
  31. </VirtualHost>
  32. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement