• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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