1

I have an nginx set up in a very boring fashion as a reverse proxy to an appserver. But sometimes my upstream gets the environment variable SERVER_PORT, sometimes it does not. Anyone suggest why it's not consistent or how I might troubleshoot it?

upstream starman {
   server unix:/var/run/starman.sock;
}

server {
<snip>
location / {
  proxy_pass        http://starman;
  proxy_set_header  SERVER_PORT $server_port;
}
sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
dotplus
  • 1,230
  • 7
  • 12

1 Answers1

0

It may be other location in your config, passing requests without adding SERVER_PORT.

DukeLion
  • 3,259
  • 1
  • 18
  • 19