zammad_ssl.conf 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #
  2. # this is an example Apache 2.4 config for Zammad
  3. # Please visit https://docs.zammad.org for further input on how to configure
  4. # your Apache to work with Zammad
  5. #
  6. # security - prevent information disclosure about server version
  7. ServerTokens Prod
  8. <VirtualHost *:80>
  9. ServerName example.com
  10. Redirect permanent / https://example.com/
  11. </VirtualHost>
  12. <VirtualHost *:443>
  13. # enable HTTP/2, if available
  14. Protocols h2 http/1.1
  15. SSLEngine on
  16. SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
  17. SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
  18. SSLHonorCipherOrder off
  19. SSLSessionTickets off
  20. SSLCertificateFile /etc/ssl/certs/example.com.pem
  21. SSLCertificateKeyFile /etc/ssl/private/example.com.key
  22. SSLCertificateChainFile /etc/ssl/certs/root-ca-plus-intermediates.pem
  23. SSLOpenSSLConfCmd DHParameters /etc/ssl/dhparam.pem
  24. # replace 'localhost' with your fqdn if you want to use zammad from remote
  25. ServerName localhost
  26. HostnameLookups Off
  27. UseCanonicalName Off
  28. ServerSignature Off
  29. Header always set Strict-Transport-Security "max-age=63072000"
  30. ProxyRequests Off
  31. ProxyPreserveHost On
  32. <Proxy 127.0.0.1:3000>
  33. Require local
  34. </Proxy>
  35. ProxyPass /assets !
  36. ProxyPass /favicon.ico !
  37. ProxyPass /apple-touch-icon.png !
  38. ProxyPass /robots.txt !
  39. # legacy web socket server
  40. ProxyPass /ws ws://127.0.0.1:6042/
  41. # action cable
  42. ProxyPass /cable ws://127.0.0.1:3000/cable
  43. ProxyPass / http://127.0.0.1:3000/
  44. # change this line in an SSO setup
  45. RequestHeader unset X-Forwarded-User
  46. # Use settings below if proxying does not work and you receive HTTP-Errror 404
  47. # if you use the settings below, make sure to comment out the above two options
  48. # This may not apply to all systems, applies to openSuse
  49. #ProxyPass /ws ws://127.0.0.1:6042/ "retry=1 acque=3000 timeout=600 keepalive=On"
  50. #ProxyPass /cable ws://127.0.0.1:3000/cable "retry=1 acque=3000 timeout=600 keepalive=On"
  51. #ProxyPass / http://127.0.0.1:3000/ "retry=1 acque=3000 timeout=600 keepalive=On"
  52. DocumentRoot "/opt/zammad/public"
  53. <Directory />
  54. Options FollowSymLinks
  55. AllowOverride None
  56. </Directory>
  57. <Directory "/opt/zammad/public">
  58. Options FollowSymLinks
  59. Require all granted
  60. </Directory>
  61. </VirtualHost>