I have two servers, called NGinxServer and AppServer. NGinxServer is the accessible entry point for all calls to AppServer. For security reasons, I modified the Security Group for AppServer to not allow any connections except those coming from the NGinxServer Security Group (NGinxServer-SG). However, when I do that, that I can't complete any proxied requests from Web Browser -> NGinxServer -> AppServer.
What could I be doing wrong? I thought NGinx proxied the entire duration of the connection, but I can only think that either NGinx is either passing off the connection which is getting blocked by the Security Group rules, or that AWS is seeing the proxied traffic which still has data that shows it as originating from Web Browser ,and not NGinx and blocks it accordingly.
Any help is greatly appreciated.
EDIT SOLUTION:
The comment/answer provided by Michael - sqlbot is the correct solution. I was using the public IP instead of the private IP.