• How to enable Nginx reverse proxy in Plesk

Install the Nginx component using the Plesk autoinstaller /usr/local/psa/admin/sbin/autoinstaller, or using the Plesk Update and Upgrade web interface.

After the installation, you can enable the Nginx service via the Plesk web interface or via the command line utility. To enable the Reverse Proxy Server (Nginx) service in the Plesk web interface: Go to Tools & Settings > Services Management, and enable the Nginx service.

To enable the Reverse Proxy Server (Nginx) service via the command line:

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

To disable Nginx, use this command:

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

To check the status of Nginx:

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

Please ensure that the service is running:

# /etc/init.d/nginx status

nginx is running.

Note: The start and stop operations for the Reverse Proxy Server (Nginx) listed above do not just start and stop the Nginx service. They also switch the web server configuration for all the domains in Plesk (Nginx and Apache combination or just an Apache web server).


This article was last modified: March 11, 2016, 4:40 p.m.

0 Comments

Please log in to leave a comment.

Add or change tags.

A comma-separated list of tags.

Share

Hacker News

Top