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

Patrick 201904-nginx at jslf.app
Fri Oct 18 05:33:57 UTC 2019


On 2019-10-18 13:17, P.V.Anthony wrote:
> Tried the following and it works but is it safe?
>
> if ( $request_uri = "/test/place?id=2" ) {
>       rewrite ^ http://new.example.com${uri}?${args}? last;
> }

Awesome. By `safe' do you mean netsec, or memory-safe, or ?



Patrick


More information about the nginx mailing list