Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

2
Nginx Proxy Pass Shows a White Screen
Post Body

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.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
34,362
Link Karma
3,056
Comment Karma
31,193
Profile updated: 5 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago