From the course: Learning NGINX

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Configure NGINX as a reverse proxy

Configure NGINX as a reverse proxy - Nginx Tutorial

From the course: Learning NGINX

Configure NGINX as a reverse proxy

- [Instructor] Now that we've discussed reverse proxies and load balancers, let's take a look at how they're implemented starting with a reverse proxy. The upstream directive, is one of the key components used to configure nginx for proxying and load balancing. The upstream directive groups together servers allowing other directives to reference all of the servers as a single unit you can find more information on the upstream directive in the documentation on nginx.org. If we consider nginx's configuration there are certain contexts where we can apply directives. We can apply them in the global context that affects all of nginx. The HTTP context for items that work with the HTTP protocol and inside the HTTP context the server and location context that specifically configure virtual hosts and the URIs used to access them. Upstreams are defined in the HTTP context. This is useful so that one upstream can be defined and…

Contents