文章目录
1. 准备工作
(1)下载最新稳定版nginx包
官网下载地址:https://nginx.org/en/download.html
(2)将nginx包拷贝到服务器并解压(# 解压到当前目录下tar -zxvf 资源包)
(3)备份服务器nginx.conf文件、ssl证书文件
2. 修改web服务器所使用的nginx的名称和版本信息
2.1 修改以下三个文件:
(1) ·src/core目录下的nginx.h文件
#define NGINX_VERSION ""
#define NGINX_VER "优快云" NGINX_VERSION
(2) ·src/http目录下的ngx_http_header_filter_module.c文件
static u_char ngx_http_server_string[] = "Server: 优快云" CRLF;