headers-more-nginx-module
headers-more-nginx-module copied to clipboard
Set, add, and clear arbitrary output headers in NGINX http servers
Right now the repo doesn't technically have any releases, so we can't leverage the github API to find the latest release per https://docs.github.com/en/rest/reference/repos#get-the-latest-release ``` root@use-mike-lb-internal1:/srv/nginx-1.20.1# curl https://api.github.com/repos/openresty/headers-more-nginx-module/releases [ ] root@use-mike-lb-internal1:/srv/nginx-1.20.1#...
intall the window openresty package from website.. unzip the package , and use 'start nginx' commmand success but when I add 'more_set_input_headers 'name:$http_qq' . it throw [emerg] unknown directive "more_set_headers"...
An example that can reproduce this situation: server { listen 8848; server_name test.test.com; more_clear_headers "Cache-Control"; location ~* / { echo "test"; } } =====Request: curl "127.0.0.1:8848" -H"host:test.test.com" -v =====Response: <...
Currently this module adds support for a combined set/add which overwrites or adds a header, meaning the value of the header is always changed. It would be great if it...
In a `location` block, I’m trying to do: ``` location / { proxy_pass http://falcon-backend-driving-fr/query; more_set_headers 'X-Upstream-Content-Type: $upstream_http_content_type'; more_set_headers 'X-Upstream-Addr: $upstream_addr'; } ``` The first line with `X-Upstream-Content-Type` works, while `X-Upstream-Addr`...
Added this to my vhost in nginx more_set_headers -s 414 'X-Foo: Bar'; This still outputs the error page, but does not set headers.
I configured: ``` more_set_headers 'X-Magic: $sent_http_x_slytherin'; ``` Did I understand it correctly that due to module initialisation order, headers-more is executed before the standard headers filter where X-Slytherin is set?...
I have recently enabled headers-more, is it possible that it will disrupt existing headers? ` add_header Permissions-Policy "geolocation=();midi=();notifications=();push=();sync-xhr=();microphone=();camera=();magnetometer=();gyroscope=();speaker=(self);vibrate=();fullscreen=(self);payment=();";`
Hello. This PR is about the issue #60 for @SamMousa . It would add header if not present the specified header. new option (-i) usage as the following: ``` bash...
HTTP keepalive was effective even with `more_set_input_headers 'Connection: close';`. `r->keepalive = 0` may be required to close connection.