Advertisement
Guest User

Includes .conf

a guest
Sep 27th, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName <FQDN>
  3. Redirect permanent / https://<FQDN>
  4. </VirtualHost>
  5.  
  6. <VirtualHost *:443>
  7. DocumentRoot /usr/local/www/nextcloud
  8. ServerName <FQDN>
  9. <FilesMatch \.php$>
  10. SetHandler "proxy:fcgi://127.0.0.1:9000/"
  11. </FilesMatch>
  12. DirectoryIndex /index.php index.php
  13.  
  14. ServerAdmin <EMAIL>
  15. SSLEngine on
  16. SSLCertificateFile /usr/local/etc/apache24/certs/Nextcloud.fullchain.pem
  17. SSLCertificateKeyFile /usr/local/etc/apache24/certs/Nextcloud.key.pem
  18.  
  19. Protocols h2 http/1.1
  20.  
  21. # modern configuration, tweak to your needs
  22. SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 -TLSv1.2
  23. SSLCipherSuite HIGH:!aNULL:!MD5
  24. SSLHonorCipherOrder on
  25. SSLCompression off
  26. SSLSessionTickets off
  27. SSLOptions +StrictRequire
  28.  
  29.  
  30. <IfModule mod_headers.c>
  31. Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
  32. </IfModule>
  33. </VirtualHost>
  34.  
  35. SSLUseStapling On
  36. SSLStaplingCache "shmcb:logs/ssl_stapling(32768)"
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement