In this recipe, we'll look at the basic configuration of a simple reverse proxy scenario. If you've read the first few chapters, then this is how NGINX was configured in front of PHP-FPM and similar anyway.
Configuring NGINX as a simple reverse proxy
Getting ready
Before you can configure NGINX, you'll first need to ensure your application is listening on a different port than port 80, and ideally on the loopback interface, to ensure it's properly protected from direct access.
How to do it...
Here's our server block directive to proxy all requests...