• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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