• 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!
  • 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.

Enable / disable nginx per domain

mirahost

New Pleskian
Is it possible to control if nginx is active on a per domain basis? If so, how do we configure this. If not, how do we disable nginx completely?
 
Hi,

As far as I understand, nginx is active for the server but you actually have to activate it per domain.
In each domain's control panel, go to Web server config where you can enable or not nginx.
If you choose not to enable it, everything will be processed by Apache just as it was before you installed nginx.

Hope this helps.

Best regards,
 
Just run

# plesk bin domain --help

And select needed option for nginx per domain:

-nginx-transparent-mode <true|false>
Turns on/off the transparent mode for
the nginx reverse proxy server. In
this mode, Apache handles both static
and dynamic content, while nginx only
passes HTTP requests and responses
without modification. The default
value is "false".

-nginx-serve-static <true|false> Turns on/off serving static content by
the nginx reverse proxy server. The
default value is "false".

-nginx-static-extensions <extensions>
Sets static files extensions that
should be served directly by nginx. If
you specify an empty value, the static
files extensions from the default
nginx configuration
(/var/www/vhosts/domain1.tld/.plesk/conf/last_nginx.conf)
will be used. Use this option with the
-nginx-serve-static command.

-nginx-serve-php <true|false> Turns on/off processing PHP files by
the nginx reverse proxy server. The
default value is "false".
 
in those cases, nginx is not disabled at all. I try this options and i nginx is working cause i am getting an "upstream error" from nginx in errror_logs
 
Back
Top