摘要: 修改src/http/ngx_http_header_filter_module.c找到下面两行:static char ngx_http_server_string[] = "Server: nginx" CRLF;static char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF;将其修改为:static char ngx_http_server_string[] = "Server: nginx" CRLF;static char ngx_http_serv 阅读全文
posted @ 2013-07-06 16:27 sunsweet 阅读(1992) 评论(0) 推荐(0) 编辑
摘要: 在nginx中有几个关于uri的变量,包括$uri $request_uri $document_uri,下面看一下他们的区别 :$request_uri: /stat.php?id=1585378&web_id=1585378$uri /stat.php$document_uri: /stat.php$args #这个变量等于请求行中的参数。$content_length #请求头中的Content-length字段。$content_type #请求头中的Content-Type字段。$document_root #当前请求在root指令中指定的值。$host #请求主机头字段,否 阅读全文
posted @ 2013-07-06 15:27 sunsweet 阅读(6998) 评论(0) 推荐(0) 编辑