Skip to content

Commit

Permalink
Hide server info for security hardening
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsihk authored and TrafeX committed Sep 7, 2022
1 parent 0be32d3 commit 15dba68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions config/php.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[Date]
date.timezone="UTC"
expose_php= Off

0 comments on commit 15dba68

Please sign in to comment.