I am trying to run nginx for multiple server such that it listen port 80 and then revert traffic to 3000 for webserver1 and 3001 for webserver2. I am able to achieve this process but issue is I need to open port 3000 and 3001 for all IP which is not good for security purpose. Can anyone please suggest steps so that my webserver listen 80 port and then divert to desired port according to configuration and we need to allow only port 80 in security group.