proxy_pass & getServerPort problems

Jiang Web lists at
Wed Feb 12 07:51:13 UTC 2014

When I use the nginx upstream and proxy_pass to Reverse Proxy the
request. the configuration is:

upstream w3new_cls {

server {
listen 80;

location /NetWeb/ {
proxy_pass http://w3new_cls/NetWeb/;
proxy_redirect off;
proxy_set_header Host $host:80;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

when I access the URL: and the application
use the <%request.getServerPort%> to get the server port is 9090, Not
the port 80.
But I want to get the port is, How can I to resovle the
Thanks for Help.

Posted via

More information about the nginx mailing list