How to do location /test/place?id=2

Patrick 201904-nginx at jslf.app
Fri Oct 18 04:20:00 UTC 2019


On 2019-10-18 12:12, P.V.Anthony wrote:
> I am using ispconfig web control that only allows changes in the server
> block.

Without a map, try starting with:

if ( $uri?$args = /test/place?id=2 ) {
    rewrite ^ http://new.example.com/${uri}?${args}? last;
}

Then as the site migration continues turn that `if' test into a regexp
that will match the migrated components.


Patrick


More information about the nginx mailing list