zammad_ssl.conf 2.3 KB

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