Skip to content

Commit 0717b64

Browse files
author
Hauke Ingwersen
committed
Hide headers from fastcgi
1 parent ab6ad1a commit 0717b64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

etc/nginx/conf.d/default.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ server {
2929
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
3030
fastcgi_param PATH_INFO $fastcgi_path_info;
3131
fastcgi_param HTTPS $is_https;
32+
33+
# Hide PHP headers
34+
fastcgi_hide_header X-Powered-By;
3235
}
3336
}

0 commit comments

Comments
 (0)