From 3fd5e29cb22cd54027816b28ff784b99f323391f Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Wed, 4 Sep 2019 12:09:20 -0400 Subject: [PATCH] Disable X-Powered-By PHP version header via expose_php flag --- apache/php.ini | 1 + fpm-alpine/php.ini | 1 + fpm/php.ini | 1 + php.ini | 1 + 4 files changed, 4 insertions(+) diff --git a/apache/php.ini b/apache/php.ini index 837be2ab..2eb57e26 100644 --- a/apache/php.ini +++ b/apache/php.ini @@ -1,3 +1,4 @@ always_populate_raw_post_data=-1 geoip.custom_directory=/var/www/html/misc display_errors=Off +expose_php=Off diff --git a/fpm-alpine/php.ini b/fpm-alpine/php.ini index 837be2ab..2eb57e26 100644 --- a/fpm-alpine/php.ini +++ b/fpm-alpine/php.ini @@ -1,3 +1,4 @@ always_populate_raw_post_data=-1 geoip.custom_directory=/var/www/html/misc display_errors=Off +expose_php=Off diff --git a/fpm/php.ini b/fpm/php.ini index 837be2ab..2eb57e26 100644 --- a/fpm/php.ini +++ b/fpm/php.ini @@ -1,3 +1,4 @@ always_populate_raw_post_data=-1 geoip.custom_directory=/var/www/html/misc display_errors=Off +expose_php=Off diff --git a/php.ini b/php.ini index 837be2ab..2eb57e26 100644 --- a/php.ini +++ b/php.ini @@ -1,3 +1,4 @@ always_populate_raw_post_data=-1 geoip.custom_directory=/var/www/html/misc display_errors=Off +expose_php=Off