zammad_ssl.conf 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. SSLEngine on
  14. SSLProtocol all -SSLv2 -SSLv3
  15. SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
  16. SSLCertificateFile /etc/letsencrypt/live/example.com-0000/fullchain.pem
  17. SSLCertificateKeyFile /etc/letsencrypt/live/example.com-0000/privkey.pem
  18. SSLCertificateChainFile /etc/ssl/lets-encrypt-x3-cross-signed.pem
  19. SSLOpenSSLConfCmd DHParameters /etc/ssl/dhparam.pem
  20. # replace 'localhost' with your fqdn if you want to use zammad from remote
  21. ServerName localhost
  22. ## don't loose time with IP address lookups
  23. HostnameLookups Off
  24. ## needed for named virtual hosts
  25. UseCanonicalName Off
  26. ## configures the footer on server-generated documents
  27. ServerSignature Off
  28. ProxyRequests Off
  29. ProxyPreserveHost On
  30. <Proxy 127.0.0.1:3000>
  31. Require local
  32. </Proxy>
  33. ProxyPass /assets !
  34. ProxyPass /favicon.ico !
  35. ProxyPass /apple-touch-icon.png !
  36. ProxyPass /robots.txt !
  37. ProxyPass /ws ws://127.0.0.1:6042/
  38. ProxyPass / http://127.0.0.1:3000/
  39. # change this line in an SSO setup
  40. RequestHeader unset X-Forwarded-User
  41. # Use settings below if proxying does not work and you receive HTTP-Errror 404
  42. # if you use the settings below, make sure to comment out the above two options
  43. # This may not apply to all systems, applies to openSuse
  44. #ProxyPass /ws ws://127.0.0.1:6042/ "retry=1 acque=3000 timeout=600 keepalive=On"
  45. #ProxyPass / http://127.0.0.1:3000/ "retry=1 acque=3000 timeout=600 keepalive=On"
  46. DocumentRoot "/opt/zammad/public"
  47. <Directory />
  48. Options FollowSymLinks
  49. AllowOverride None
  50. </Directory>
  51. <Directory "/opt/zammad/public">
  52. Options FollowSymLinks
  53. Require all granted
  54. </Directory>
  55. </VirtualHost>