Welcome! Log In Create A New Profile

Advanced

Re: Create custom variable based on another one

August 04, 2016 09:38AM
Hai,

Thanks for your response !

$1 did not work for me :
nginx: [emerg] unknown "1" variable
nginx: configuration file /etc/nginx/nginx.conf test failed

For future reference, here is what i used :

map $request_uri $path {
~^(?P<pathname>/[^/]+)/ $pathname;
default /;
}

seems to work in all my cases.

but, if you want to explain, not sure about what this do : (/|$)

Thanks !
Subject Author Posted

Create custom variable based on another one

pixeye August 04, 2016 08:27AM

Re: Create custom variable based on another one

Edho Arief August 04, 2016 09:00AM

Re: Create custom variable based on another one

pixeye August 04, 2016 09:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 301
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