修改nginx服务器类型
http://tech.foolpig.com/2010/06/01/nginx-version/
网络转载,通常nginx服务器不隐藏服务器类型及版本信息
curl -I http://10.60.30.23
HTTP/1.1 200 OKServer: nginx nginx/0.8.53Date: Tue, 14 Dec 2010 08:10:06 GMTContent-Type: text/htmlContent-Length: 151Last-Modified: Mon, 13 Dec 2010 09:39:55 GMTConnection: keep-aliveAccept-Ranges: bytes
/* * Copyright (C) Igor Sysoev */#ifndef _NGINX_H_INCLUDED_#define _NGINX_H_INCLUDED_#define nginx_version 1000004#define NGINX_VERSION "1.0.4"#define NGINX_VER "nginx/" NGINX_VERSION#define NGINX_VAR "NGINX"#define NGX_OLDPID_EXT ".oldbin"#endif /* _NGINX_H_INCLUDED_ */
#define NGINX_VERSION "10001212"#define NGINX_VER "我自己的服务器/" NGINX_VERSION
HTTP/1.1 200 OKServer: pws 1.0Date: Tue, 14 Dec 2010 08:24:32 GMTContent-Type: text/htmlContent-Length: 151Last-Modified: Mon, 13 Dec 2010 09:39:55 GMTConnection: keep-aliveAccept-Ranges: bytes