Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: wrong format when displaying nodejs page

$
0
0
Homer-S Wrote:
-------------------------------------------------------
> OK, I think I see the point, but how do I fix it. Because I thought
> with
>
> proxy_pass http://127.0.0.1:2368/ghost;
>
> I am forwarding the port 80 to 2368.

Internally a request on port 2368 is passed to 80, locally you might get a reply back from port 80 without you seeing it, externally port 80 is not open so a reply from 80 does not reach the client.

What you need to do is tell your proxypass application that its port is 2368 and not 80 (in order to get the application to reply back on the proxy port).

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>