Advertisement
Guest User

Untitled

a guest
May 7th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. cat /etc/httpd/conf.d/zz_nextcloud.conf
  2. # ================= DO NOT MODIFY THIS FILE =================
  3. #
  4. # Manual changes will be lost when this file is regenerated.
  5. #
  6. # Please read the developer's guide, which is available
  7. # at NethServer official site: https://www.nethserver.org
  8. #
  9. #
  10. <VirtualHost *:80>
  11. ServerName server.domain.tld
  12. Redirect / https://server.domain.tld/
  13. </VirtualHost>
  14.  
  15. <VirtualHost *:443>
  16. ServerName server.domain.tld
  17. SSLEngine on
  18. SSLCertificateFile /etc/pki/tls/certs/localhost.crt
  19. SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
  20. SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA
  21.  
  22. RewriteCond %{HTTPS} !=on
  23. RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
  24.  
  25. Alias / "/usr/share/nextcloud/"
  26. <Directory "/usr/share/nextcloud">
  27. Options +FollowSymLinks
  28. AllowOverride All
  29. Require all granted
  30.  
  31. <IfModule mod_dav.c>
  32. Dav off
  33. </IfModule>
  34.  
  35. <FilesMatch \.php$>
  36. SetHandler "proxy:fcgi://127.0.0.1:9000"
  37. </FilesMatch>
  38.  
  39. SetEnv HOME /usr/share/nextcloud
  40. SetEnv HTTP_HOME /usr/share/nextcloud
  41. SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  42. </Directory>
  43.  
  44. <Directory "/usr/share/nextcloud/data/">
  45. # just in case if .htaccess gets disabled
  46. Require all denied
  47. </Directory>
  48. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement