How to switch a domain to nginx-only hosting in Plesk

Applicable to:

Plesk Onyx for Linux

Question

How to switch a domain to nginx-only hosting (without Apache) in Plesk?

Answer

Notes:

This functionality is available starting from Plesk Onyx with the nginx reverse proxy component enabled.Plesk services (for example, Webmail) continue working using Apache and are not affected by switching to nginx-only hosting.

After switching a domain to nginx-only hosting, make sure it is working with nginx. For WordPress websites it is required to add additional nginx directives. For more information, visit this KB article.

Switching onnginx-only hosting for a domain

In Plesk, go to Domains > example.com > Apache & nginx Settings.

In the nginx settings section, disable the Proxy mode setting.

Apply the changes.

Switching on nginx-only hosting for all new domains under a service plan