add a response header on nginx when using proxy_pass,nginxproxy_pass


https://github.com/openresty/headers-more-nginx-module

Download the latest version of the release tarball of this module from headers-more-nginx-module file list.
./configure \ --prefix=/usr/local/nginx-1.11.9 \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ --with-http_ssl_module \ --with-http_realip_module \ --with-http_addition_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_flv_module \ --with-http_mp4_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_random_index_module \ --with-http_secure_link_module \ --with-http_stub_status_module \ --with-http_auth_request_module \ --with-threads \ --with-stream \ --with-stream_ssl_module \ --with-http_slice_module \ --with-mail \ --with-mail_ssl_module \ --with-file-aio \ --with-http_v2_module \ --with-stream_realip_module \ --http-client-body-temp-path=/var/tmp/nginx/client/ \ --http-proxy-temp-path=/var/tmp/nginx/proxy/ \ --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \ --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi \ --with-pcre=/usr/local/pcre-8.39 \ --with-zlib=/usr/local/zlib-1.2.8 \ --with-openssl=/usr/local/openssl-1.0.1t \ --add-module=/usr/local/nginx-1.11.9/src/3rd-modules/headers-more-nginx-module-0.32
make && make install

相关内容

    暂无相关文章