Advertisement
Guest User

Apache Conf

a guest
Feb 26th, 2021
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <VirtualHost *:80>
  2. DocumentRoot "/var/www/nextcloud/"
  3. ServerName cloud.domain.co.uk
  4. <IfModule mod_headers.c>
  5. Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
  6. </IfModule>
  7. <Directory /var/www/nextcloud/>
  8. Require all granted
  9. AllowOverride All
  10. Options FollowSymLinks MultiViews
  11. <IfModule mod_dav.c>
  12. Dav off
  13. </IfModule>
  14.  
  15. </Directory>
  16. </VirtualHost>
  17. <VirtualHost *:443>
  18. DocumentRoot "/var/www/nextcloud/"
  19. ServerName cloud.domain.co.uk
  20. <IfModule mod_headers.c>
  21. Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
  22. </IfModule>
  23. <Directory "/var/www/nextcloud/">
  24. Require all granted
  25. AllowOverride All
  26. Options FollowSymLinks MultiViews
  27. <IfModule mod_dav.c>
  28. Dav off
  29. </IfModule>
  30. </Directory>
  31. SSLEngine on
  32. SSLCertificateFile /etc/letsencrypt/live/cloud.domain.co.uk/fullchain.pem
  33. SSLCertificateKeyFile /etc/letsencrypt/live/cloud.domain.co.uk/privkey.pem
  34. Include /etc/letsencrypt/options-ssl-apache.conf
  35. </VirtualHost>
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement