• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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