Hi,
i have the following snippet running on host a.com, which proxys request to the server b.com for certain locations. Also it checks if static files in the system folder are available on host a.com and if not it loads them from host b.com
until now host a.com and b.com were on 2 different servers. i had to move host b.com on to the same machine as a.com and now this doesn't work anymore... The only difference is that a.com and b.com have the same ip address now.
any help would be greatly appreciated!
regards,
Gerold
location ~ (/de|/en) {
access_log off;
proxy_pass http://b.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ~ (/system) {
error_page 404 =200 @backend;
}
location @backend {
access_log off;
proxy_pass http://b.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_intercept_errors on;
proxy_redirect off;
}