Changing Nginx Server Name on its HTTP Header

Nginx by default showing its name and also its version depending the configuration.

To change this name we have to edit the source file and recompile Nginx.

Open the file: <nginx source>/src/http/ngx_http_header_filter_module.c

Look for line 49:

and change it to:

Now you need to compile Nginx and restart it to make the changes take effect.

Leave a Reply

Your email address will not be published. Required fields are marked *