• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Source for server section of NGINX.conf

Jack Lee

New Pleskian
I'm only asking here, because you guys seem to know everything....not sure if this is a Plesk issue or not.

We run PHP 5.6.30 in production served with nginx through the Plesk Onyx panel. Our test site is PHP 7.0.19. Our website is Wordpress.

I find myself needing to modify the nginx.conf file, basically adding:
location / {
index.php index.html index.htm;

ADD this line: try_files $uri $uri/ /index.php;

So our wordpress website site works. Without the re-write above, nginx returns "not found" to the browser when wordpress loads a menu choice. So I found the server section in /var/www/vhosts/system/{domain_name}/conf/nginx.conf and added it. This is a temp patch
However, this is a generated file.

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.



But the main nginx.conf in /etc/nginx/nginx.conf has no server section
So I need to change the server section of nginx.conf somewhere. Where is the source file I should be changing? Thanks so much.
 
Back
Top