How to install and enable nginx reverse proxy on a Plesk for Linux server

Applicable to:

Plesk for Linux

Question

How to install and enable nginx reverse proxy on a Plesk for Linux server?

Answer

After enabling nginx reverse proxy on a Plesk server, it will be used in combination with Apache. To learn more about how nginx reverse proxy works with Apache, visit the following Plesk documentation page:

Install the nginx reverse proxy component using the following command:

# plesk installer --select-release-current --install-component nginx

Manage nginx reverse proxy:

To check the current status of nginx reverse proxy:

# /usr/local/psa/admin/sbin/nginxmng --status

To enable the nginx reverse proxy service, run:

# /usr/local/psa/admin/sbin/nginxmng --enable

To disable the nginx reverse proxy service, run:

# /usr/local/psa/admin/sbin/nginxmng --disable

Note: The start and stop operations for nginx reverse proxy listed above switch the nginx web-server configuration for all domains in Plesk. This might cause a website downtime for a short period of time.