zammad.conf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. # This is a NON SSL configuration, DO NOT use in production!
  7. #
  8. # security - prevent information disclosure about server version
  9. ServerTokens Prod
  10. <VirtualHost *:80>
  11. # replace 'localhost' with your fqdn if you want to use zammad from remote
  12. ServerName localhost
  13. ## don't loose time with IP address lookups
  14. HostnameLookups Off
  15. ## needed for named virtual hosts
  16. UseCanonicalName Off
  17. ## configures the footer on server-generated documents
  18. ServerSignature Off
  19. ProxyRequests Off
  20. ProxyPreserveHost On
  21. <Proxy 127.0.0.1:3000>
  22. Require local
  23. </Proxy>
  24. ProxyPass /assets !
  25. ProxyPass /favicon.ico !
  26. ProxyPass /apple-touch-icon.png !
  27. ProxyPass /robots.txt !
  28. # legacy web socket server
  29. ProxyPass /ws ws://127.0.0.1:6042/
  30. # action cable
  31. ProxyPass /cable ws://127.0.0.1:3000/cable
  32. ProxyPass / http://127.0.0.1:3000/
  33. # change this line in an SSO setup
  34. RequestHeader unset X-Forwarded-User
  35. DocumentRoot "/opt/zammad/public"
  36. <Directory />
  37. Options FollowSymLinks
  38. AllowOverride None
  39. </Directory>
  40. <Directory "/opt/zammad/public">
  41. Options FollowSymLinks
  42. Require all granted
  43. </Directory>
  44. </VirtualHost>