Skip to content

Commit 15dba68

Browse files
jimsihkTrafeX
authored andcommitted
Hide server info for security hardening
1 parent 0be32d3 commit 15dba68

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

config/nginx.conf

+5
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ http {
8585
}
8686
}
8787

88+
# Hardening
89+
proxy_hide_header X-Powered-By;
90+
fastcgi_hide_header X-Powered-By;
91+
server_tokens off;
92+
8893
gzip on;
8994
gzip_proxied any;
9095
gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;

config/php.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[Date]
22
date.timezone="UTC"
3+
expose_php= Off

0 commit comments

Comments
 (0)