diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-02-15 22:31:13 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-16 12:40:36 +0300 |
commit | 67a4093e5fa4015320caadb26d54488b86c1dc30 (patch) | |
tree | f45f605cd9a7a8e1d87f9ce3702946cb30009708 /etc/nextcloudpi-config.d | |
parent | 875ce5912883adcadfb35a08717648cb70b0c9f5 (diff) |
lamp: protect apache fingerprintingv0.46.12
Diffstat (limited to 'etc/nextcloudpi-config.d')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-nextcloud.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/nc-nextcloud.sh b/etc/nextcloudpi-config.d/nc-nextcloud.sh index 31607d9b..94d1d4d6 100644 --- a/etc/nextcloudpi-config.d/nc-nextcloud.sh +++ b/etc/nextcloudpi-config.d/nc-nextcloud.sh @@ -217,6 +217,10 @@ EOF </VirtualHost> EOF + # some added security + sed -i 's|^ServerSignature .*|ServerSignature Off|' /etc/apache2/conf-enabled/security.conf + sed -i 's|^ServerTokens .*|ServerTokens Prod|' /etc/apache2/conf-enabled/security.conf + echo "Setting up system..." ## SET LIMITS |