該模塊是ngx_http_headers_module模塊的增強版,提供了更多的實用工具,比如復位或清除內置頭信息,如Content-Type, Content-Length, 和Server。
Install Howto:
Download the latest webtatic-release rpm from
http://repo.webtatic.com/yum/el7/x86_64/
Install webtatic-release rpm for now:
# rpm -Uvh http://repo.webtatic.com/yum/el7/x86_64/RPMS/webtatic-release-7-3.noarch.rpm
安裝 nginx1w-module-headers-more 套件,安裝前需要先移除已安裝的 nginx:
# yum remove nginx
# yum --enablerepo=webtatic install nginx1w nginx1w-module-headers-more
載入module 到 nginx.conf
QUOTE:
load_module "/usr/lib64/nginx/modules/ngx_http_headers_more_filter_module.so";
重新啟動 nginx 即可
參考文章:
https://centos.pkgs.org/7/webtatic-x86_64/nginx1w-module-headers-more-1.12.0-1.w7.x86_64.rpm.html