Nginx and Websphere

Francis Daly francis at daoine.org
Fri May 29 21:44:59 UTC 2015


On Fri, May 29, 2015 at 12:51:51PM -0400, sampy wrote:
> Francis Daly Wrote:

> > >         location /WebApp {
> > >                 proxy_pass http://webint;
> > >                 proxy_redirect http://webint:9080/ /;
> > >         }

> But when I change LOCATION from:

> location /WebApp {
>                 proxy_pass http://balancer/WebApp;
>                 proxy_redirect http://balancer:9080/ /;
>          }

> to:

> location / {
>                 proxy_pass http://balancer/WebApp;
>                 proxy_redirect http://balancer:9080/ /;
>                 }

> stop working. "curl" sees the 302 redirection in both cases, but the web is
> not showed in the second case. I think I forget something or I have some
> mistake in syntax.

Look at the proxy_pass in the very first one, the one that worked.

It is just http://webint -- no / or anything after it.

Whether you use "location /" or "location /WebApp", just use
"proxy_pass http://balancer;"

http://nginx.org/r/proxy_pass for the details.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list