zammad_ssl.conf 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #
  2. # this is an example apache 2.4 config for zammad with free letsencrypt.org ssl certificates
  3. # replace all occurrences of example.com with your domain
  4. # create letsencrypt certificate by: certbot certonly --webroot -w /var/www/html -d www.example.com
  5. # create dhparam.pem by: openssl dhparam -out /etc/ssl/dhparam.pem 4096
  6. # download x3 certificate by: wget -q https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem -P /etc/ssl
  7. # you can test your ssl configuration @ https://www.ssllabs.com/ssltest/analyze.html
  8. #
  9. <VirtualHost *:80>
  10. ServerName example.com
  11. # security - prevent information disclosure about server version
  12. ServerTokens Prod
  13. Redirect permanent / https://example.com
  14. </VirtualHost>
  15. <VirtualHost *:443>
  16. SSLEngine on
  17. SSLProtocol all -SSLv2 -SSLv3
  18. SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
  19. SSLCertificateFile /etc/letsencrypt/live/example.com-0000/fullchain.pem
  20. SSLCertificateKeyFile /etc/letsencrypt/live/example.com-0000/privkey.pem
  21. SSLCertificateChainFile /etc/ssl/lets-encrypt-x3-cross-signed.pem
  22. SSLOpenSSLConfCmd DHParameters /etc/ssl/dhparam.pem
  23. # replace 'localhost' with your fqdn if you want to use zammad from remote
  24. ServerName localhost
  25. # security - prevent information disclosure about server version
  26. ServerTokens Prod
  27. ## don't loose time with IP address lookups
  28. HostnameLookups Off
  29. ## needed for named virtual hosts
  30. UseCanonicalName Off
  31. ## configures the footer on server-generated documents
  32. ServerSignature Off
  33. ProxyRequests Off
  34. ProxyPreserveHost On
  35. <Proxy 127.0.0.1:3000>
  36. Require local
  37. </Proxy>
  38. ProxyPass /assets !
  39. ProxyPass /favicon.ico !
  40. ProxyPass /robots.txt !
  41. ProxyPass /ws ws://127.0.0.1:6042/
  42. ProxyPass / http://127.0.0.1:3000/
  43. # Use settings below if proxying does not work and you receive HTTP-Errror 404
  44. # if you use the settings below, make sure to comment out the above two options
  45. # This may not apply to all systems, applies to openSuse
  46. #ProxyPass /ws ws://127.0.0.1:6042/ "retry=1 acque=3000 timeout=600 keepalive=On"
  47. #ProxyPass / http://127.0.0.1:3000/ "retry=1 acque=3000 timeout=600 keepalive=On"
  48. DocumentRoot "/opt/zammad/public"
  49. <Directory />
  50. Options FollowSymLinks
  51. AllowOverride None
  52. </Directory>
  53. <Directory "/opt/zammad/public">
  54. Options FollowSymLinks
  55. Require all granted
  56. </Directory>
  57. </VirtualHost>