Author: admin | Category: Nginx

我们使用 curl -I  等软件获取WEB 服务器http 头的时候会返回以下信息:

 HTTP/1.1 200 OK
Server: nginx/0.6.35
Date: Tue, 14 Jul 2009 08:33:01 GMT
Content-Type: text/html
Content-Length: 86
Last-Modified: Tue, 16 Jun 2009 06:55:32 GMT
Connection: keep-alive
Expires: Sat, 18 Jul 2009 08:33:01 GMT
Cache-Control: max-age=345600
Accept-Ranges: bytes

其中 Server: nginx/0.6.35 这个 是 httpd 服务器的版本已经信息。

Nginx 的话可以通过修改源代码 src/core/nginx.h
/*
 * Copyright (C) Igor Sysoev
 */
#ifndef _NGINX_H_INCLUDED_
#define _NGINX_H_INCLUDED_
#define NGINX_VERSION      “0.6.35″    
#define NGINX_VER          “nginx/” NGINX_VERSION

#define NGINX_VAR          “NGINX”
#define NGX_OLDPID_EXT     “.oldbin”
#endif /* _NGINX_H_INCLUDED_ */

############# 我把我的改成 #############

/*
 * Copyright (C) Igor Sysoev
 */
#ifndef _NGINX_H_INCLUDED_
#define _NGINX_H_INCLUDED_
#define NGINX_VERSION      “1.0″    
#define NGINX_VER          “GzNow/” NGINX_VERSION

#define NGINX_VAR          “GzNow”
#define NGX_OLDPID_EXT     “.oldbin”
#endif /* _NGINX_H_INCLUDED_ */

##########  保存退出之后,就像平时一样编译安装。##########

这样你就有了你自己名字的 httpd 服务器了。

Comments are closed.
RSS for entries