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).
-------------------------------------------------------
> 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).