I found a solution (after reading the manual) http://nginx.org/en/docs/http/ngx_http_rewrite_module.html On Thu, 7 Mar 2019 at 14:57, Hans Schou <hsc@miracle.dk> wrote: > Example of required redirect: > http://ex.org/foo -> https://ex2.org/foo/ # Nx solves the bug here > http://ex.org/foo/ -> https://ex2.org/foo/ > http://ex.org/foo/?id=7 -> https://ex2.org/?id=7 >by hsc@miracle.dk - Nginx Mailing List - English
Hi I have this buggy backend application where I try to let Nginx sort out the problems. Example of required redirect: http://ex.org/foo -> https://ex2.org/foo/ # Nx solves the bug here http://ex.org/foo/ -> https://ex2.org/foo/ http://ex.org/foo/?id=7 -> https://ex2.org/?id=7 Here is my current configuration which is in too parts but I have the idea that I'm doing it wrong and it cby hsc@miracle.dk - Nginx Mailing List - English
Hi I have this service where I proxy_pass a lot of different locations to different services. All "locations" in this "server" need to have a lot of add_header lines for cors filtering. But if I move the add_header from the "location" to the "server" section I get a: nginx: "add_header" directive is not allowed here in Do I have to haveby hsc@miracle.dk - Other discussion