[LB]Bad root document set via proxy_pass

mafious nginx-forum at nginx.us
Thu May 30 16:14:09 UTC 2013

Hello everybody,

I am using several instances of Nginx (1.4.1). One as a LoadBalancer and the
others to host rails applications (using module passenger).

Depending of the url, I forward to the proper backend:
location /<myApp> {
  proxy_pass http://<myApp>_cluster;

But via the proxy, the web page of my application is not correctly render.
The path to load images files is incorrect and point to the default root
document location.

Direct access to my application is fine so I guess I miss something in the
load balancer configuration but what ?
Before that when I didn't need to precise the url in the location directive,
it worked fine via the load balancer as well.


Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239702,239702#msg-239702

More information about the nginx mailing list