From 22a5a6f917113df5b54559be958ae33e5673261c Mon Sep 17 00:00:00 2001 From: Christian Homeyer Date: Sun, 14 Jun 2015 20:56:20 +0200 Subject: [PATCH] Don't expose php version in favor of #433 hide php version --- setup/web.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/web.sh b/setup/web.sh index 4e974ea8..ce421842 100755 --- a/setup/web.sh +++ b/setup/web.sh @@ -80,6 +80,10 @@ if [ -L /etc/init.d/php-fastcgi ]; then apt-get -y purge php5-cgi #NODOC fi +# Don't expose the php version +tools/editconf.py /etc/nginx/fastcgi_params \ + "fastcgi_param PHP_VALUE \"expose_php"="Off\";" + # Remove obsoleted scripts. #NODOC # exchange-autodiscover is now handled by Z-Push. #NODOC for f in webfinger exchange-autodiscover; do #NODOC