aports/testing/nginx-naxsi/default.conf
Stuart Cardall 242dfebcfe testing/nginx-naxsi: update to 1.13.8
* add `sysguard.conf` to the sysguard module
* fixes `${SVCNAME}` => `${RC_SVCNAME}` in `initd`
* add `server_tokens off;` to `default.conf`

https://nginx.org/en/CHANGES
2018-03-21 12:06:11 +00:00

21 lines
364 B
Plaintext

# This is a default site configuration which will simply return 404, preventing
# chance access to any other virtualhost.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_tokens off;
# Everything is a 404
location / {
return 404;
}
# You may need this to prevent return 404 recursion.
location = /404.html {
internal;
}
}