Networking NGINX What

What is Reverse proxy and configure NGINX as a reverse proxy


What is Reverse Proxy: 

Reverse proxy takes the request from the client over the network, forward to the server in an internal server and send back server’s response to the client.

NGINX_ReverseProxyThe advantage of Reverse proxy:

  1. The reverse proxy hides the existence and characteristics of the server.
  2. Reverse proxy protects the server from web-based attacks, DOS or DDOS attacks.
  3. The reverse proxy acts as an SSL proximity proxy.
  4. Reverse proxies can operate wherever multiple web-servers must be accessible via a single public IP address.
  5. A reverse proxy can distribute the load from incoming requests to several servers, with each server serving its own application area.
  6. A reverse proxy can reduce the load on its origin servers by caching static content.
  7. A reverse proxy can add basic HTTP access authentication to a web server that does not have any authentication.

Configure NGINX as a Reverse proxy:

Refer NGINX installation guidance, click here

Add below-mentioned configuration in nginx.conf file configuration and restart the NGINX.

worker_processes 1;
events {
   worker_connections 1024; 

http {
   server {
           listen 80;
           location / {
           proxy_pass; #change backend server ip and port

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.