Nginx - hide server version and info for production use

Revision as of 03:15, 28 March 2020 by Ardaut (talk | changes) (Created page with " If you want to use Nginx in production use (for a website, etc.), then please add the following Nginx settings. <pre>vim /etc/nginx/nginx.conf</pre> Change server_tokens to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If you want to use Nginx in production use (for a website, etc.), then please add the following Nginx settings.

vim /etc/nginx/nginx.conf

Change server_tokens to this value:

server_tokens off;

Add also this to the nginx.conf file

more_set_headers 'Server: Web server';