User Tools

Site Tools


web_servers:nginx:setup_nginx_reverse_proxy

This is an old revision of the document!


Web Servers - Nginx - Setup Nginx Reverse Proxy

A Reverse Proxy sits between a client and a web server (or servers) and acts as a frontend by handling all incoming client requests and distributing them to the backend web, database, and/or other server(s).

Other benefits of a Reverse Proxy include:

  • Load balancing: The reverse proxy distributes incoming connections to backend servers, and can even do so according to the current load that each server is under.
    • This ensures that none of the backend servers get overloaded with requests.
    • It also prevents downtime, since the reverse proxy can reroute traffic if a backend server happens to go offline.
  • Central logging: Rather than having multiple servers generate log files, the reverse proxy can log all relevant information in a single location.
    • This makes the administrator’s job immensely easier, since problems can be isolated much more quickly and there is no need to parse log files from multiple locations when troubleshooting issues.
  • Improved security: A reverse proxy will obfuscate information about the backend servers, as well as act as a first line of defense against incoming attacks.
    • Since the reverse proxy is filtering out traffic prior to forwarding it to the backend, only innocuous traffic is passed along to the other servers.
  • Better performance: A reverse proxy server can make smart decisions about how to distribute the load across backend servers, which results in speedier response times.
    • Other common server tasks such as caching and compression can also be offloaded to the reverse proxy server, freeing up resources for the backend servers.

Install NginX

sudo apt install nginx
web_servers/nginx/setup_nginx_reverse_proxy.1634142664.txt.gz · Last modified: 2021/10/13 16:31 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki