nginx隐藏版本号
1 z在配置zhong在配置中在xiug修改 root@mail ~]# vi /usr/local/nginx0.8/conf/nginx.conf worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; server_tokens off; expires 5s; sendfile on; keepalive_timeout 65; include "sites-enabled/mail*"; } [root@mail ~]#service nginx reload 2代码中修改 root@mail nginx-0.8.53]# vi src/core/nginx.h #define nginx_version 8053 #define NGINX_VERSION "10.0" #define NGINX_VER "jh/" NGINX_VERSION #define NGINX_VAR "NGINX" #define NGX_OLDPID_EXT ".oldbin" #endif /* _NGINX_H_INCLUDED_ */ https://www.cnblogs.com/tl542475736/p/5504074.html














