This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I have two apps running on the same server
- w.x.y.z:2203
- w.x.y.z:2213
And a proxy server running on this:
- a.b.c.d
And I have an nginx config that's proxying the 2 set up like below:
location / {
proxy_pass https://w.x.y.z:2203/;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_cache static;
}
location /test-dev/ {
proxy_pass https:/w.x.y.z:2213/;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache static;
}
But nothing. If I go to a.b.c.d I get redirected to w.x.y.z:2203 without issues. Obviously it shows up as w.x.y.z:2203/, but it still works without fail.
If I go to a.b.c.d/test-dev/ then all I get is a white screen. I do not go to w.x.y.z:2213.
I have confirmed that w.x.y.z:2213 is up, and can get to the app from the server itself. My computer can curl w.x.y.z:2213 and get a response back. And the server can curl w.x.y.z:2213, and ping w.x.y.z without fail.
So the Proxy can get a response from the w.x.y.z app on both ports. But one of the ports is a white screen. What gives?
The apps are tomcat apps if that helps. But I'm stuck.
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/nginx/comme...