Hide X-Powered-By header (#239)

This commit is contained in:
Rasel Islam Rafi 2024-06-18 14:23:14 +06:00 committed by GitHub
parent 7d367465ff
commit 5ccbab74b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@ server {
fastcgi_pass unix:/var/run/php/php__php_version__-fpm.sock; fastcgi_pass unix:/var/run/php/php__php_version__-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
fastcgi_hide_header X-Powered-By;
} }
location ~ /\.(?!well-known).* { location ~ /\.(?!well-known).* {

View File

@ -23,6 +23,7 @@ server {
fastcgi_pass unix:/var/run/php/php__php_version__-fpm.sock; fastcgi_pass unix:/var/run/php/php__php_version__-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
fastcgi_hide_header X-Powered-By;
} }
location ~ /\.(?!well-known).* { location ~ /\.(?!well-known).* {

View File

@ -134,6 +134,7 @@ server {
fastcgi_pass unix:/var/run/php/php${V_PHP_VERSION}-fpm.sock; fastcgi_pass unix:/var/run/php/php${V_PHP_VERSION}-fpm.sock;
fastcgi_param SCRIPT_FILENAME \$realpath_root\$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME \$realpath_root\$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
fastcgi_hide_header X-Powered-By;
} }
location ~ /\.(?!well-known).* { location ~ /\.(?!well-known).* {