Forum: NGINX Does setting a variable only work once?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F5a6ed477b109fe6acc11a5a8f87e7e8?d=identicon&s=25 Michael Shadle (Guest)
on 2009-05-12 21:19
(Received via mailing list)
neither of these work. it only takes the first $port, the second one is
ignored

                set $port 11019;
                root /home/foo/web/bar.com;
                include /etc/nginx/expires.conf;
                include /etc/nginx/confs/phpmyadmin.conf;
                location /sites {
                        set $port 11003;
                        include /etc/nginx/confs/sites.conf;
                }
or
                set $port 11019;
                root /home/foo/web/bar.com;
                include /etc/nginx/expires.conf;
                include /etc/nginx/confs/phpmyadmin.conf;
                set $port 11003;
                include /etc/nginx/confs/sites.conf;
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-05-13 06:36
(Received via mailing list)
On Tue, May 12, 2009 at 12:07:10PM -0700, Michael Shadle wrote:

> or
>                 set $port 11019;
>                 root /home/foo/web/bar.com;
>                 include /etc/nginx/expires.conf;
>                 include /etc/nginx/confs/phpmyadmin.conf;
>                 set $port 11003;
>                 include /etc/nginx/confs/sites.conf;

It should work. Could you send me debug log ?
F5a6ed477b109fe6acc11a5a8f87e7e8?d=identicon&s=25 Michael Shadle (Guest)
on 2009-05-13 07:03
(Received via mailing list)
sorry, i can't reproduce this at the moment.

a co-worker had reported it, now i need to see if it happens again.

2009/5/12 Igor Sysoev <is@rambler-co.ru>:
2974d09ac2541e892966b762aad84943?d=identicon&s=25 "坏人" (Guest)
on 2009-05-13 15:32
(Received via mailing list)
不知道sites.conf的内容。不过看起来你是想动态设置监听端口,这是不行的,重设监听端口必须重启服务

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,1981,1984#msg-1984
F5a6ed477b109fe6acc11a5a8f87e7e8?d=identicon&s=25 Michael Shadle (Guest)
on 2009-05-13 15:38
(Received via mailing list)
what don't you understand?

we don't understand you, ENGLISH only please.

2009/5/12 "坏人" <nginx-forum@nginx.us>:
C7d991889a0720df9662290e99d80a74?d=identicon&s=25 Chancey (Guest)
on 2009-05-13 20:21
(Received via mailing list)
translate :

chinese: 
不知道sites.conf的内容。不过看起来你是想动态设置监听端口,这是不行的,重设监听端口必须重启服务
english: i don't know the contents of sites.conf , It looks like you are
set the service port and reload nginx,
That won't take effect except restart service



I'd like to correct something you said: reload nginx service can
effective immediately


2009-05-13



Chancey



发件人: Michael Shadle
发送时间: 2009-05-13  04:31:43
收件人: nginx
抄送:
主题: Re: Does setting a variable only work once?

what don't you understand?
we don't understand you, ENGLISH only please.
2009/5/12 "坏人" <nginx-forum@nginx.us>:
84aea75e571b1fe8bf4bfdc6f5e9c3c2?d=identicon&s=25 汪洪伟 (Guest)
on 2009-05-13 20:38
(Received via mailing list)
omg, this mail-list is offering translation nowadays, awesome!

2009/5/13 Chancey <chanceycn@gmail.com>
C7d991889a0720df9662290e99d80a74?d=identicon&s=25 Chancey (Guest)
on 2009-05-13 21:17
(Received via mailing list)
Attachment: 14.gif (2 KB)
I hope so


2009-05-13



Chancey



发件人: 汪洪伟
发送时间: 2009-05-13  09:31:53
收件人: nginx
抄送:
主题: Re: Re: Does setting a variable only work once?

omg, this mail-list is offering translation nowadays, awesome!


2009/5/13 Chancey <chanceycn@gmail.com>

translate :

chinese: 
不知道sites.conf的内容。不过看起来你是想动态设置监听端口,这是不行的,重设监听端口必须重启服务
english: i don't know the contents of sites.conf , It looks like you are
set the service port and reload nginx,
That won't take effect except restart service



I'd like to correct something you said: reload nginx service can
effective immediately


2009-05-13



Chancey



发件人: Michael Shadle
发送时间: 2009-05-13  04:31:43
收件人: nginx
抄送:
主题: Re: Does setting a variable only work once?
what don't you understand?
we don't understand you, ENGLISH only please.
2009/5/12 "坏人" <nginx-forum@nginx.us>:
6d4a6e9574c15d11480db6d7e5eb2750?d=identicon&s=25 Delta Yeh (Guest)
on 2009-05-13 21:44
(Received via mailing list)
兄弟你似乎对NGINX蛮熟悉的,可以告诉我你的联系方式么。

2009/5/13 "坏人" <nginx-forum@nginx.us>
This topic is locked and can not be replied to.