Ngnix as Reverse Proxy

Reverse proxy can:
* hide existence of original backend servers
* protect backend servers from web based attackes, DOS ...
* provide caching fonctionalities
* optimize the content by using compression
* act as SSL Terminaison proxy
* Route requests

Reverse proxy configuration: proxy_pass directive
proxy_pass directive forwards the request to the proxied server specified along with the directive:


server {
        listen       80;
        server_name  example.com;
           location / {
            proxy_pass http:// 192.168.1.50;
          }
 }
server {
        listen       8080;
        server_name  example.com;
           location / {
            proxy_pass http:// 192.168.1.100;
          }
 }