Plesk Onyx for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk Onyx for Linux
Question
How to switch a domain to nginx-only hosting (without Apache) in Plesk?
Answer
After switching a domain to nginx-only hosting:
-
Check if the website is working with nginx.
-
Websites that use rewrite rules in the
.htaccess
file may not work properly, because the.htaccess
file is not processed by nginx. For more information, visit this KB article. -
Webmail will continue working on Apache.
Switching on nginx-only hosting for a domain
-
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
-
Go to Service Plans> Example Plan > Web Server tab.
-
In the nginx settings section, disable the Proxy mode setting.
-
Click Update & Sync.
Comments
8 comments
Hi,
The Customer's Guide: Nginx-Only Hosting is resulting in 404, could you please check?
Thanks!
Hello @Mario !
Thank you for pointing out!
The link has been repaired:
Customer's Guide: Nginx-Only Hosting
There is no `nginx settings section` in my Plesk under Websites & Domains > Apache & nginx Settings!
Where can I configure this?
Thanks,
Hello Muhammad Altabba
Most probably, the Nginx isn't installed on the server.
Make sure it's installed as described here: https://support.plesk.com/hc/en-us/articles/213944825-How-to-install-and-enable-nginx-reverse-proxy-on-a-Plesk-for-Linux-server
You should mention that this will ignore .htaccess files. also mod_security will not work, after I enabled Nginx only for some sites, I am reverting back to Nginx reverse mode with Apache just for the sake of mod_security, mod_security is very important to address many web sites security issues.
Hello Fouad Ahmed Fouad,
Thank you for notes. Article was updated.
Hi, what are some of the benefits of doing this?
Hello Nathan Wilson
Please, check our blog article devoted to this topic: https://www.plesk.com/blog/guides/enable-nginx-only-hosting-your-domain/
Please sign in to leave a comment.