WEB/WAS > Nginx

[nginx] Nginx 버전정보 Signiture 숨기기

Nginx version info 및 명칭을 안보이게 하기(컴파일전)

# vi src/http/ngx_http_header_filter_module.c

- 49 static u_char ngx_http_server_string[] = "Server: nginx" CRLF;
+ 49 static u_char ngx_http_server_string[] = "Server: emunhi" CRLF;

# vi src/core/nginx.h

- 13 #define NGINX_VERSION      "1.20.1"
- 14 #define NGINX_VER          "nginx/" NGINX_VERSION
+ 13 #define NGINX_VERSION      "1.0"
+ 14 #define NGINX_VER          "emunhi/" NGINX_VERSION