Get rid of args from $request_uri

c0nw0nk nginx-forum at
Tue Aug 8 12:45:54 UTC 2017

why don't you use

$uri $is_args $args

This will build the URL like.

index.php ? arguement=value&moreargs=morevalue

$request_uri will always output the full URL. Not individual segments of

If you want the first part of the url only just use $uri on its own.

Posted at Nginx Forum:,275930,275936#msg-275936

More information about the nginx mailing list