• 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.

Nginx + PHP-FPM vs Wordpress Permalinks & Reverse Proxy

ThomasBereczky

New Pleskian
Hey There!

I've meet an issue the permalinks are not working in wordpress if I use Nginx, I was able to solve it by editing the last_nginx.conf but it will be removed when the server reconfigure itself.

I've add this line to the location: try_files $uri $uri/ /index.php?$args;

It's working but I don't want Plesk to reconfigure itself anymore.

Also I've got two subdomains that I edited the last_nginx.conf to link to another server (ip:port) as a reverse proxy server. If it's regenerate the last_nginx.conf all settings will be lost. (These servers are JAVA servers and I need to directly connect to ip:port that is the reason why I used)

Can you give me some advice?
 
Yes.

Can you try via the panel or vhost_nginx.conf...
for now, it only works with non-www websites


location ~ \.php$



{
try_files $uri $uri/ /index.php?$uri&$args;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

if (!-e $request_filename){
rewrite ^(.*)$ /index.php?url=$1 break;
}
 
Last edited:
I'm no LAMP wizard but I too was having the same problem, I found a solution by adding the following to Additional nginx directives:

if (!-e $request_filename){
rewrite ^(.*)$ /index.php break;
}

To be honest I do not understand the above command or even if it is superiour to the solution you found. Perhaps someone else would be so kind to elaborate.
 
Back
Top