nginx 설정 gzip 압축 js 문제 에 대한 합병 요청

27961 단어 문제 백업
gzip on;
gzip_min_length 1k;
gzip_buffers 16 64k;
gzip_http_version 1.1;
gzip_comp_level 9;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
     gzip on  gzip——types    centos    js      ,      gzip_vary    js

nginx http “server_tokens off; ” , server location

src/core/nginx.h

1
2
#define NGINX_VERSION  "1.6.2" // 2.4.3
#define NGINX_VER "nginx/" Apache

src/http/ngx_http_header_filter_module.c

1
static  char  ngx_http_server_string[] = "Server:nginx"   // apache

src/http/ngx_http_special_response.c

1
2
3
4
5
6
7
8
9
10
11
12
13
static  u_char ngx_http_error_full_tail[] =
"
"
  NGINX_VER  ""  CRLF
"

좋은 웹페이지 즐겨찾기