Have to create 3 tier architecture on AWS. my simple environment works like this: User ----> Eternal application load balancer ---> NGINX web server ----> internal application load balancer ----> Apache application server. When i hit to external load balancer dns it should connect to apache web server. So what configuration should i make on NGINX and in which files so it forwards my requests from external load balancer to internal load balancer so i can able to connect to my apache server.
Please help me on this.
If the External LB points to NGINX, then the
proxy_passdirective value on NGINX should be the internal LB, which, if I understood correctly, routes to the Apache server.You can configure a server block and inside it a location block in
nginx.confunder /etc/nginx OR create a separate virtual host config file for the site that points to the External ELB under thesites-enabledfolder.For example: