mirror of
https://github.com/netfun2000/docker-php-nginx.git
synced 2026-04-22 00:29:10 +08:00
Hide server info for security hardening
This commit is contained in:
@@ -85,6 +85,11 @@ http {
|
||||
}
|
||||
}
|
||||
|
||||
# Hardening
|
||||
proxy_hide_header X-Powered-By;
|
||||
fastcgi_hide_header X-Powered-By;
|
||||
server_tokens off;
|
||||
|
||||
gzip on;
|
||||
gzip_proxied any;
|
||||
gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
[Date]
|
||||
date.timezone="UTC"
|
||||
expose_php= Off
|
||||
Reference in New Issue
Block a user