• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Custom nginx settings

SerjGAmoVeR

New Pleskian
Hi

I have a custom solution with two parts:
- Content with Wordpress
- Application with PHP framework

I wanna merge it under one domain with this logic:

- If page exists in application, show this page
- In other case, redirect request to Wordpress

Case:

location ^~ /blog/ {
proxy_pass http://wordpress_upstream;
}

upstream wordpress_upstream {
server blog; # IP or server address
}

Full config is here
wordpress_and_yii.nginx.conf · GitHub

Is it possible to impletement this solution with Plesk?
 
Back
Top