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?
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?