Welcome! Log In Create A New Profile

Advanced

$cookie + regexp

Alexander Moskalenko
March 18, 2010 06:42AM
Добрый день!

Есть ли возможность динамически формировать имя $cookie ?

location ~* "^(\/ua)?\/ssipoll\/.*\/tnp_([\S]{1,10})?$" {
set $memcached_key "tnp_$2_$cookie_tnp_$2";


Тут я пытаюсь получить из локейшена некий id и запросить куку в имени
которой присутствует этот id.
В итоге получаем tnp_ + $2 + $cookie_tnp_ + $2, что в принципе прогнозируемо.
Пытался через set, результат тот же.

Собственно можно ли как-то сформировать ее динамически?
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

$cookie + regexp

Alexander Moskalenko March 18, 2010 06:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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