Nginx displays a prominent version number in the HTTP header or on error pages. For security reasons, you should generally disable this information.
The method is very simple. Just add the server_tokens parameter inside the http { block in nginx.conf.
For example:
- http {
- include mime.types;
- default_type application/octet-stream;
- server_tokens off; #Disable version display
- client_header_timeout 3m;
- client_body_timeout 3m;
- send_timeout 3m;
If you want to modify the displayed Server name as well, refer to: http://www.oschina.net/bbs/thread/1568?lp=1