Welcome! Log In Create A New Profile

Advanced

Nginx doesn't pass $server_port through to upstream?

Posted by adam 
Nginx doesn't pass $server_port through to upstream?
June 22, 2011 04:44PM
Hello!

I've been using Apache with the proxy_balancer module as a front-end to Tomcat. Part of my Tomcat app needs to know what port the original request came in on ($server_port). It detects this not via header, but by directly grabbing the CGI variable.

I'm trying to replace Apache with Nginx, but I've noticed that the $server_port CGI var is not passed by Nginx through to Tomcat in the proxying. Am I doing something wrong?

Thanks.

Adam
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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