Reputation: 1067
I am not sure how to formulate my question but here we go:
I have 2 servers, one is the nginx reverse proxy and one is the app server.
In my app server, I am developing a simple http client using jerseyclient that will send a request to another server. I can do this now but the traffic goes from the app server and directly to the destination. Is it possible to it from the app server, passes through the reverse proxy server and goes to the destination?
And, is this design ok or is it an abomination?
Upvotes: 1
Views: 881
Reputation: 136
nginx reverse proxy works only for requests outside your network. To configure your system works as you described you have to configure firewall NAT or caching HTTP proxy like squid etc. If you have no reasons why your servers should look as single computer - your configuration is OK.
Upvotes: 1