[nginx.conf]: Set 'server_tokens off'; won't leak nginx version (#4681)
Some checks failed
Tests / phpunit8 (8.3) (push) Has been cancelled
Tests / phpunit8 (8.4) (push) Has been cancelled
Build Image on Commit and Release / bake (push) Has been cancelled
Lint / phpcs (7.4) (push) Has been cancelled
Lint / phpcompatibility (7.4) (push) Has been cancelled
Lint / executable_php_files_check (push) Has been cancelled
Tests / phpunit8 (7.4) (push) Has been cancelled
Tests / phpunit8 (8.0) (push) Has been cancelled
Tests / phpunit8 (8.1) (push) Has been cancelled
Tests / phpunit8 (8.2) (push) Has been cancelled

This commit is contained in:
Hunter T. 2025-08-25 14:28:06 -07:00 committed by GitHub
parent 29b47d95dc
commit 32f324dbb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,8 @@ server {
error_log /var/log/nginx/error.log;
index index.php;
server_tokens off; # Hide nginx version
location ~ /(\.|vendor|tests) {
deny all;
return 403; # Forbidden