Welcome! Log In Create A New Profile

Advanced

Re: map nginx

Maxim Dounin
June 22, 2011 04:38AM
Hello!

On Tue, Jun 21, 2011 at 10:48:22PM +0400, Vitaly Tskhovrebov wrote:

> сделал так (схематично):
>
> http
> {
> map $var1 $var2 {
> val1 val2;
> }
>
> server {
> if ($cookie_R = $var1)
> {
> ...
> }
> }
> }
>
> На что nginx сказал, что $var1 unknown variable.

А где определяется $var1?

Just in cacse: map <исходная_переменная> <новая_переменная>.

Maxim Dounin

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

map nginx

vt June 22, 2011 01:18AM

Re: map nginx

Maxim Dounin June 22, 2011 04:38AM

Re: map nginx

vt June 22, 2011 06:10AM

Re: map nginx

Вадим Лазовский June 22, 2011 06:54AM

Re: map nginx

vt June 22, 2011 07:32AM

Re: map nginx

Anton Yuzhaninov June 22, 2011 07:48AM

Re: map nginx

vt June 22, 2011 07:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready