• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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