How to Use nginx to Serve All Static Content in Plesk

September 6, 2022 / Plesk

The purpose of this guide is to explain how to use ngnix to serve all static content in Plesk. In the case of static content requests, Apache only identifies the location of the corresponding file, and Nginx locates and delivers it.

Follow the steps to serve all static content in Plesk using ngnix-

  1. Log in to the Plesk control panel.
    Log in to Plesk
  2. Select the “Websites & Domains” option from the left-hand side of the screen.
    Websites and domains
  3. You will land up on the “Apache & Ngnix settings” page.
    Apache & Ngnix settings
  4. Scroll down to the “Ngnix settings” section.
  5. Check the boxes for “Proxy mode” and “Smart static file processing”.
  6. Ensure that Nginx is not configured to serve static files directly. So uncheck the “Serve static files directly by nginx” option.
    Nginx settings
  7. Click on the “Ok” button.
    Ok

It’s that simple! It was easy, wasn’t it? Please visit our KB section regularly if you enjoyed our article.

Dominos Search