Difference between revisions of "Nginx - hide server version and info for production use"

(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...")
 
(No difference)

Latest revision as of 03:15, 28 March 2020

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';