Fixes #3253 - Remove ServerTokens from apache configurations
This commit is contained in:
parent
893acd2656
commit
8c6ac52ef6
2 changed files with 9 additions and 16 deletions
|
@ -2,13 +2,13 @@
|
||||||
# this is the apache config for zammad
|
# this is the apache config for zammad
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# security - prevent information disclosure about server version
|
||||||
|
ServerTokens Prod
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
# replace 'localhost' with your fqdn if you want to use zammad from remote
|
# replace 'localhost' with your fqdn if you want to use zammad from remote
|
||||||
ServerName localhost
|
ServerName localhost
|
||||||
|
|
||||||
# security - prevent information disclosure about server version
|
|
||||||
ServerTokens Prod
|
|
||||||
|
|
||||||
## don't loose time with IP address lookups
|
## don't loose time with IP address lookups
|
||||||
HostnameLookups Off
|
HostnameLookups Off
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
#
|
#
|
||||||
# this is an example apache 2.4 config for zammad with free letsencrypt.org ssl certificates
|
# this is an example apache 2.4 config for zammad
|
||||||
# replace all occurrences of example.com with your domain
|
# Please visit https://docs.zammad.org for further input on how to configure
|
||||||
# create letsencrypt certificate by: certbot certonly --webroot -w /var/www/html -d www.example.com
|
# your apache to work with Zammad
|
||||||
# create dhparam.pem by: openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
|
||||||
# download x3 certificate by: wget -q https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem -P /etc/ssl
|
|
||||||
# you can test your ssl configuration @ https://www.ssllabs.com/ssltest/analyze.html
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# security - prevent information disclosure about server version
|
||||||
|
ServerTokens Prod
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName example.com
|
ServerName example.com
|
||||||
|
|
||||||
# security - prevent information disclosure about server version
|
|
||||||
ServerTokens Prod
|
|
||||||
|
|
||||||
Redirect permanent / https://example.com
|
Redirect permanent / https://example.com
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
@ -29,9 +25,6 @@
|
||||||
# replace 'localhost' with your fqdn if you want to use zammad from remote
|
# replace 'localhost' with your fqdn if you want to use zammad from remote
|
||||||
ServerName localhost
|
ServerName localhost
|
||||||
|
|
||||||
# security - prevent information disclosure about server version
|
|
||||||
ServerTokens Prod
|
|
||||||
|
|
||||||
## don't loose time with IP address lookups
|
## don't loose time with IP address lookups
|
||||||
HostnameLookups Off
|
HostnameLookups Off
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue