• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Plesk with nginx as standalone webserver

9musashi

Basic Pleskian
Hi, I set "FPM application served by NGINX" for every service plan that I want nginx as their standalone webserver.

But I have some configuration questions:

1. How to set default "Serve static files directly by nginx" to enabled (checked) ? So I dont have to go to every domain and click "checked" to enable it. It will be nice if this option is also included in Service Plan configuration and not only in Domain configuration.

2. I need to add Drupal nginx directive in "location / " , example:
For Drupal 7
location / {
try_files $uri /index.php?$query_string; # For Drupal >= 7
}

OR
For Drupal 6
location / {
try_files $uri @rewrite; # For Drupal <= 6
}

Currently , I add "try_files $uri /index.php?$query_string; # For Drupal >= 7" line in /usr/local/psa/admin/conf/templates/custom/domain/nginxDomainVirtualHost.php
But for Drupal 6 version website I need to edit directly to /var/www/vhosts/system/domain_name/conf/nginx.conf and write-protected the file with "chattr +i" command.

Any cleaner solution to add nginx directive at Plesk GUI panel without "duplicate" nginx directive error or without have to use chattr +i command ?

I tried VestaCP and it has very good solution as they provide different nginx config template that we can choose (we can also create it) when we add a domain. Maybe Plesk could also provide "nginx config select box" to choose at domain setting.

Thank you
 
Should I just remove this line
Code:
    location / {
<?php echo $VAR->includeTemplate('domain/service/proxy.php', $OPT); ?>
    }
from /usr/local/psa/a dmin/conf/templates/custom/domain/nginxDomainVirtualHost.php

and add this line at Plesk panel nginx directive ?
Code:
location / {
try_files $uri /index.php?$query_string; # For Drupal >= 7
}
 
Back
Top