Re: Get rid of args from $request_uri

2017-08-08 Thread Lucas Rolff
e looking for c0nw0nk. From: nginx on behalf of Zhang Chao Reply-To: "nginx@nginx.org" Date: Tuesday, 8 August 2017 at 16.07 To: "nginx@nginx.org" Subject: Re: Get rid of args from $request_uri On 8 August 2017 at 22:02:32, chilly_bang (nginx-fo...@f

Re: Get rid of args from $request_uri

2017-08-08 Thread Zhang Chao
On 8 August 2017 at 22:02:32, chilly_bang (nginx-fo...@forum.nginx.org) wrote: c0nw0nk Wrote: --- > why don't you use > > $uri Is it not so, that $uri will output an encoded url? $uri is always the one decode once time and merge the slash(if y

Re: Get rid of args from $request_uri

2017-08-08 Thread chilly_bang
c0nw0nk Wrote: --- > why don't you use > > $uri Is it not so, that $uri will output an encoded url? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275930,275937#msg-275937 ___ nginx maili

Re: Get rid of args from $request_uri

2017-08-08 Thread c0nw0nk
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 it. If you want the first part of the url only just use $uri on its own. http://nginx.org/en/docs/http/n