2016-11-15 09:29:31 +00:00
|
|
|
#
|
|
|
|
# this is the apache config for zammad
|
|
|
|
#
|
|
|
|
|
2020-12-30 15:55:31 +00:00
|
|
|
# security - prevent information disclosure about server version
|
|
|
|
ServerTokens Prod
|
|
|
|
|
2016-11-15 09:29:31 +00:00
|
|
|
<VirtualHost *:80>
|
|
|
|
# replace 'localhost' with your fqdn if you want to use zammad from remote
|
2016-12-04 11:48:58 +00:00
|
|
|
ServerName localhost
|
2016-11-15 09:29:31 +00:00
|
|
|
|
|
|
|
## don't loose time with IP address lookups
|
|
|
|
HostnameLookups Off
|
|
|
|
|
|
|
|
## needed for named virtual hosts
|
|
|
|
UseCanonicalName Off
|
|
|
|
|
|
|
|
## configures the footer on server-generated documents
|
|
|
|
ServerSignature Off
|
|
|
|
|
|
|
|
ProxyRequests Off
|
|
|
|
ProxyPreserveHost On
|
|
|
|
|
2018-11-21 16:50:05 +00:00
|
|
|
<Proxy 127.0.0.1:3000>
|
2016-11-16 09:33:06 +00:00
|
|
|
Require local
|
2016-11-15 09:29:31 +00:00
|
|
|
</Proxy>
|
|
|
|
|
|
|
|
ProxyPass /assets !
|
|
|
|
ProxyPass /favicon.ico !
|
2020-10-30 20:52:32 +00:00
|
|
|
ProxyPass /apple-touch-icon.png !
|
2016-11-15 09:29:31 +00:00
|
|
|
ProxyPass /robots.txt !
|
2018-11-21 16:50:05 +00:00
|
|
|
ProxyPass /ws ws://127.0.0.1:6042/
|
|
|
|
ProxyPass / http://127.0.0.1:3000/
|
2016-11-15 09:29:31 +00:00
|
|
|
|
2020-08-26 13:21:17 +00:00
|
|
|
# change this line in an SSO setup
|
|
|
|
RequestHeader unset X-Forwarded-User
|
|
|
|
|
2016-11-15 09:29:31 +00:00
|
|
|
DocumentRoot "/opt/zammad/public"
|
|
|
|
|
|
|
|
<Directory />
|
|
|
|
Options FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory "/opt/zammad/public">
|
|
|
|
Options FollowSymLinks
|
2016-11-16 09:33:06 +00:00
|
|
|
Require all granted
|
2016-11-15 09:29:31 +00:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
</VirtualHost>
|