Welcome! Log In Create A New Profile

Advanced

Re: [LB]Bad root document set via proxy_pass

Francis Daly
June 01, 2013 05:26AM
On Thu, May 30, 2013 at 12:14:09PM -0400, mafious wrote:

Hi there,

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

I'm not exactly sure what you are reporting.

Is it that your application writes links like "/images/image.png" instead
of "/myapp/images/image.png"? (In which case: fix your application.)

Or is it that your application writes links like "/myapp/images/image.png"
and you want the load balancer to serve them from somewhere else? (In
which case: fix your load-balancer config.)

Or is it something else?

The more specific you are with reports like "I do this, I see this,
I expect to see this", the more chance that someone will be able to help.

Good luck,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

[LB]Bad root document set via proxy_pass

mafious May 30, 2013 12:14PM

Re: [LB]Bad root document set via proxy_pass

Francis Daly June 01, 2013 05:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready