Introduction
Sometimes you want your web server to forward requests to another server or service. The proxy_pass directive in nginx helps you do this by sending client requests to a different backend server.
When you want nginx to forward requests to a web application running on another server or port.
When you want to hide the real backend server from users for security or simplicity.
When you want to load balance requests between multiple backend servers.
When you want to serve static files from nginx but pass dynamic requests to an application server.
When you want to add caching or security features in front of your backend service.