Hi all,
This is driving me CRAZY!!
I am trying to use the following to proxy off a sub folder eg example.co.uk/blog to wordpress on wordpress.example.co.uk
location /blog {
proxy_pass http://wordpress.example.co.uk/;
}
text / image / html / work fine
however, any php file does not work and it looks like nginx tries to process php locally
[crit] 24184#0: *67578 connect() to unix:///var/www/vhosts/system/example.co.uk/php-fpm.sock failed (2: No such file or directory) while connecting to upstream
apache is off (Proxy mode disabled) so only nginx in use,
what am I missing?
This is driving me CRAZY!!
I am trying to use the following to proxy off a sub folder eg example.co.uk/blog to wordpress on wordpress.example.co.uk
location /blog {
proxy_pass http://wordpress.example.co.uk/;
}
text / image / html / work fine
however, any php file does not work and it looks like nginx tries to process php locally
[crit] 24184#0: *67578 connect() to unix:///var/www/vhosts/system/example.co.uk/php-fpm.sock failed (2: No such file or directory) while connecting to upstream
apache is off (Proxy mode disabled) so only nginx in use,
what am I missing?