Articles in this section

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

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

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

Answer

Note: 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 this Plesk documentation page.

Plesk interface
  1. Install the nginx reverse proxy component:

    1.1. Log in to Plesk.

    1.2. Go to Tools & Settings and click Updates.

     

     

    1.3. On the Updates page, click Add/Remove Components.


    Plesk_Installer_-_Add_Remove_Components.png
     

    1.4. On the Add/Remove Components page, expand Web hosting and select Nginx web server for installation. Click Continue to begin the installation.


    Screenshot_2018-12-12_Plesk_Installer.png
     

  2. Once the component is installed, enable the nginx reverse proxy service in Plesk:

    2.1. Go to Tools & Settings > Services Management.

    2.2. Click the Screenshot_2018-12-12_Services_-_Plesk_Onyx_17_8_11_1_.png button next to Reverse Proxy Server (nginx) once and wait. The process will take some time to configure.

Command-line interface

 

  1. Connect to your Plesk server via SSH.
  2. Install the nginx reverse proxy component using the following command:

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

  3. Manage nginx reverse proxy:

    • To check the current status of nginx reverse proxy:

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

    • To enable nginx reverse proxy service, run:

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

    • To disable nginx reverse proxy service, run:

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

     

    Note: During the start and stop operations websites hosted in Plesk will be unavailable.

Was this article helpful?

Comments

2 comments
Date Votes
  • Absolutely zero information about how to configure this.

    0
  • Exactly! Plesk can you please add a description on hoe to configure the Brix reverse proxy 

    0

Please sign in to leave a comment.