I configured an HTTP proxy server on my EC2 instance using Apache's mod_proxy module. I now want the proxy to accept requests only from my other EC2 instances, how do I achieve that?
This is my proxy config:
ProxyRequests On <Proxy *> Order deny,allow Deny from all Allow from ??? </Proxy>
I know a solution could be to have to proxy to listen on another port, and configure a security group on AWS so that only my EC2 instances can access that port, is this the way to go?