One of the most basic optimization of protection
1, after our daily custom install nginx, by accessing the page does not exist in the back of the 404 pages you can see the version information and nginx server.
2, that is actually the version information can be hidden, the following specific about:
First, the unzipped file directory as follows: /root/nginx-1.14.2/src/core - There is a file called nginx.h
It is clear you can see the version of the server types and specific information
Second, hide file version information by modifying this (revised)
Third, the effect is as follows:
3, to this end.