Plesk

How do to Set up Nginx as a Reverse Proxy in Plesk?

How-do-to-Set-up-Nginx-as-a-Reverse-Proxy-in-Plesk.png

In this post, we’ll show you how to set up Nginx as a reverse proxy on Plesk.

What is Reverse Proxy, and how does it work?

A standard proxy server is an intermediate server that may transmit requests from many clients to various servers via the internet, as well as offer private content on behalf of clients.

A reverse proxy server sits between internal applications and external clients, sending client requests to the appropriate backend Linux VPS server and ensuring that network traffic between clients and servers flows properly.

Nginx is a free, open-source reverse proxy, IMAP/POP3 proxy server that may increase performance by providing static content and sending dynamic content requests to the Apache server.

The reasons to put in Reverse proxy are:
  1. If you’ve got multiple servers then the reverse proxy help to balance the load between servers & also improves the performance.
  2. It provides one point of contact for clients & can consider logging & reporting across multiple servers.
  3. The main reason for installation is privacy.
  4. The reasons to recommend Nginx are
  • It has the potential to improve security.
  • It may assist him in improving his performance.
  • It may assist him in balancing the load between servers.
  • It will make tracking and auditing much easier for him.
  • TLS may be used to encrypt the connection between the client and the reverse proxy.

Setup of NGINX Reverse Proxy on Plesk Control Panel:

Step: 1 Login to “Plesk account as root user”

Step: 2 Search for “Tools & Settings” click on the “Plesk” option choose “Restricted Mode Settings”

Step: 3 After selecting the webserver tab (as seen in the picture), scroll all the way down to the bottom to find the nginx configuration.

Step: 4 After that, deselect “proxy mode” and add this information to “Additional Nginx Directives” before clicking “Apply.”

location / {

            proxy_pass       http://server_IP:3000;

            proxy_redirect   off;

            proxy_set_header Host $host;

            proxy_set_header X-Real-IP $remote_addr;

            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

            proxy_set_header X-Forwarded-Host $server_name;

}

Note: You may only edit the first line’s Server IP and the final line’s server name.

Additional nginx directives

Do we sincerely hope that you must now have got a clear idea regarding How do to set up Nginx as a reverse proxy in Plesk? However, if you are still facing any difficulty in the procedure mentioned above, feel free to reach out to the bodHOST Team for proactive support 24×7

Leave a Reply

Your email address will not be published. Required fields are marked *