Re: proxy_pass & getServerPort problems

2014-02-13 Thread Francis Daly
On Thu, Feb 13, 2014 at 02:00:48AM +0100, Jiang Web wrote: > Francis Daly wrote in post #1136476: Hi there, > > getServerPort is not an nginx thing, and nginx probably cannot affect > > what it reports. > > > > What do you do with the result of getServerPort? > we get the last request url(in jav

Re: proxy_pass & getServerPort problems

2014-02-12 Thread Jiang Web
Francis Daly wrote in post #1136476: > On Wed, Feb 12, 2014 at 08:51:13AM +0100, Jiang Web wrote: > > Hi there, > >> location /NetWeb/ { >> proxy_pass http://w3new_cls/NetWeb/; >> proxy_redirect off; >> proxy_set_header Host $host:80; > >> when I access the URL: http://w3.huawei.com/NetWeb and the

Re: proxy_pass & getServerPort problems

2014-02-12 Thread Francis Daly
On Wed, Feb 12, 2014 at 08:51:13AM +0100, Jiang Web wrote: Hi there, > location /NetWeb/ { > proxy_pass http://w3new_cls/NetWeb/; > proxy_redirect off; > proxy_set_header Host $host:80; > when I access the URL: http://w3.huawei.com/NetWeb and the application > use the <%request.getServerPort%> t

proxy_pass & getServerPort problems

2014-02-11 Thread Jiang Web
When I use the nginx upstream and proxy_pass to Reverse Proxy the request. the configuration is: upstream w3new_cls { server szxap205-in.huawei.com:9090; server szxap206-in.huawei.com:9090; } server { listen 80; server_name w3.huawei.com; location /NetWeb/ { proxy_pass http://w3new_cls/NetWeb/;