don't expose PHP version in the X-Powered-By header, closes #439, fixes #433

This commit is contained in:
Joshua Tauberer 2015-06-18 11:12:03 +00:00
parent 43d50d0667
commit 97cd4c64ad
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ sed "s#STORAGE_ROOT#$STORAGE_ROOT#" \
tools/editconf.py /etc/nginx/nginx.conf -s \
server_names_hash_bucket_size="64;"
# Tell PHP not to expose its version number in the X-Powered-By header.
tools/editconf.py /etc/php5/fpm/php.ini -c ';' \
expose_php=Off
# Bump up PHP's max_children to support more concurrent connections
tools/editconf.py /etc/php5/fpm/pool.d/www.conf -c ';' \
pm.max_children=8