nginx 获取header 请求参数_Nginx设置Header头信息
Nginx 使用 ngx_headers_more 模塊來增加、刪除出站、入站的 Header 信息。
ngx_headers_more 項目主頁
默認該模塊沒有加入到 Nginx 的源碼中,要想使用相關功能需要在編譯 Nginx 時加入該模塊。
本人服務器中的 Nginx 在編譯時沒有加入該模塊,使用 -V 查看當前 Nginx 的編譯參數:
[root@z-dig ~]# nginx -V
nginx version: www.z-dig.com
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --user=www --group=www \
--with-http_ssl_module --with-http_stub_status_module
[root@z-dig ~]#
1
2
3
4
5
6
7
8
[root@z-dig~]# nginx -V
nginxversion:www.z-dig.com
builtbygcc4.4.720120313(RedHat4.4.7-16)(GCC)
builtwithOpenSSL1.0.1e-fips11Feb2013
TLSSNIsupportenabled
configurearguments:--prefix=/usr/local/nginx--user=www--group=w
總結
以上是生活随笔為你收集整理的nginx 获取header 请求参数_Nginx设置Header头信息的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python getchar_syste
- 下一篇: Nginx(全)