Welcome! Log In Create A New Profile

Advanced

Re: Static Content on Different Server Isn't Loaded??

Francis Daly
August 02, 2015 07:08PM
On Sun, Aug 02, 2015 at 06:59:03PM -0400, smsmaddy1981 wrote:
> "/content/img.jpg" is sepcific to an application and which is deployed on
> "ser02".

I'm going to guess that you mean "every request that starts with /content/
should be handled by ser02".

In that case, your configuration should be like

location ^~ /content/ {
proxy_pass http://ser02;
}

What happens when you use that?

(What request do you make?; what response do you get?)

> Whenenver an web request is made accessing the application (deployed on
> ser02)...through upstream configuration...the service responds reaching
> ser02...but static files (/content/img.jpg) are not rendered. The access_log
> shows the file is trying to look on ser01 (Nginx is installed)

If you still see a problem, can you list the exact request that does
work as you want, and the exact request that does not work as you want?

f
--
Francis Daly francis@daoine.org

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

Static Content on Different Server Isn't Loaded??

smsmaddy1981 June 22, 2015 08:35AM

Re: Static Content on Different Server Isn't Loaded??

Francis Daly June 23, 2015 05:50PM

Re: Static Content on Different Server Isn't Loaded??

smsmaddy1981 August 01, 2015 07:32PM

Re: Static Content on Different Server Isn't Loaded??

Francis Daly August 02, 2015 06:06AM

Re: Static Content on Different Server Isn't Loaded??

smsmaddy1981 August 02, 2015 05:44PM

Re: Static Content on Different Server Isn't Loaded??

Francis Daly August 02, 2015 06:32PM

Re: Static Content on Different Server Isn't Loaded??

smsmaddy1981 August 02, 2015 06:36PM

Re: Static Content on Different Server Isn't Loaded??

Francis Daly August 02, 2015 06:48PM

Re: Static Content on Different Server Isn't Loaded??

smsmaddy1981 August 02, 2015 06:59PM

Re: Static Content on Different Server Isn't Loaded??

Francis Daly August 02, 2015 07:08PM

Re: Static Content on Different Server Isn't Loaded??

smsmaddy1981 August 02, 2015 07:30PM

Re: Static Content on Different Server Isn't Loaded??

smsmaddy1981 August 17, 2015 05:30AM

Re: Static Content on Different Server Isn't Loaded??

smsmaddy1981 August 18, 2015 01:12PM

Re: Static Content on Different Server Isn't Loaded??

Francis Daly August 19, 2015 01:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
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