IT/System & Network
nginx 서버명 노출 방지
Hotman
2016. 11. 8. 15:59
nginx 설치 전 소스 수정
nginx-1.8.1/src/http/ngx_http_header_filter_module.c 49번째 라인 수정
49 static char ngx_http_server_string[] = "Server: nginx" CRLF;
50 static char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF;
=>
49 static char ngx_http_server_string[] = "change" CRLF;
50 static char ngx_http_server_full_string[] = "change" CRLF;
buid 후 install