Welcome! Log In Create A New Profile

Advanced

Re: Get rid of args from $request_uri

August 08, 2017 08:45AM
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/ngx_http_core_module.html#var_uri

http://www.networkflare.com/
Subject Author Posted

Get rid of args from $request_uri

chilly_bang August 08, 2017 05:42AM

Re: Get rid of args from $request_uri

c0nw0nk August 08, 2017 08:45AM

Re: Get rid of args from $request_uri

chilly_bang August 08, 2017 10:02AM

Re: Get rid of args from $request_uri

tokers August 08, 2017 10:08AM

Re: Get rid of args from $request_uri

Lucas Rolff August 08, 2017 11:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 241
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready