Generally, the nginx Server does not hide the Server type and version information curl-I http: // 10.60.30.23. Obtain the type and version code of the web Server. HTTP/1.1 200 OK Server: nginx/0.8.53 Date: tue, 14 Dec 2010 08:10:06 GMT Content-Type: text/html Content-Length: 151 Last-Modified: Mon, 13 Dec 2010 09:39:55 GMT Connection: keep-alive Accept-Ranges: bytes is a hidden danger for server security. You can use the following methods to improve this situation. edit source code .. /src/http/ngx_http_header_filter_module.c: code 48 before modification static char ngx_http_server_str Ing [] = "Server: nginx" CRLF; 49 static char ngx_http_server_full_string [] = "Server:" NGINX_VER CRLF; changed to 48 static char ngx_http_server_string [] = "Server: pws 1.0 "CRLF; 49 static char ngx_http_server_full_string [] =" Server: pws 1.0 "NGINX_VER CRLF; then compiled and installed. 2. edit/usr/local/nginx/conf/nginx. conf, add server_tokens off; restart nginx/usr/local/nginx/sbin/nginx-s reload. The final result is as follows: curl-I http: // Server information code modified after 10.60.30.23 HTTP/1.1 200 OK Server: pws 1.0 Date: Tue, 14 Dec 2010 08:24:32 GMT Content-Type: text/html Content-Length: 151 Last-Modified: Mon, 13 Dec 2010 09:39:55 GMT Connection: keep-alive Accept-Ranges: bytes author 275553385