![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
李必胜
这个作者很懒,什么都没留下…
展开
-
安装Nginx(From Source Code)
Setting up Pre-requisites to compile from sourceyum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel# mkdir -p src && cd src Compiling the Nginx sourceDownloading the source codenginx原创 2017-08-22 00:11:36 · 505 阅读 · 0 评论 -
[2017-11-07]相应头 X-ReqId
公共相应头相应头 X-ReqId在Nginx中实现作用:上传请求的唯一 ID。通过该 ID 可快速定位用户请求的相关日志。要求:nginx version v1.11以上配置方法:1.在http内部添加mapmap $http_x_request_id $reqid { default $http_x_request_id; "" $request_id;}2原创 2017-11-08 10:04:50 · 1732 阅读 · 0 评论 -
[2017-11-08]隐藏Nginx版本
通过在配置文件的http节配置server_tokens off来达到我们目的。server_tokens off; abcdeMacBook-Air:plexus-utils abc$ curl -I http://123.123.123.123/greetingHTTP/1.1 200Server: nginx -- 已经没有版本号了Date: Thu, 09 Nov 2017 0原创 2017-11-09 09:47:31 · 199 阅读 · 0 评论