Welcome! Log In Create A New Profile

Advanced

Re: Nginx and Websphere

Francis Daly
May 29, 2015 05:46PM
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@daoine.org

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

Nginx and Websphere

sampy May 26, 2015 06:36AM

Re: Nginx and Websphere

Francis Daly May 26, 2015 07:40PM

Re: Nginx and Websphere

sampy May 27, 2015 07:27AM

Re: Nginx and Websphere

Francis Daly May 27, 2015 09:34AM

Re: Nginx and Websphere

sampy May 28, 2015 02:35AM

Re: Nginx and Websphere

Francis Daly May 28, 2015 03:50AM

Re: Nginx and Websphere

sampy May 28, 2015 04:15AM

Re: Nginx and Websphere

Francis Daly May 28, 2015 07:34AM

Re: Nginx and Websphere

sampy May 28, 2015 11:50AM

Re: Nginx and Websphere

Francis Daly May 28, 2015 02:02PM

Re: Nginx and Websphere

sampy May 29, 2015 02:01AM

Re: Nginx and Websphere

Francis Daly May 29, 2015 03:34AM

Re: Nginx and Websphere

sampy May 29, 2015 12:51PM

Re: Nginx and Websphere

Francis Daly May 29, 2015 05:46PM

Re: Nginx and Websphere

Ravikiran Siddhanti May 29, 2015 10:44PM

Re: Nginx and Websphere

unclepieman May 28, 2015 02:36PM

Re: Nginx and Websphere

sampy May 29, 2015 12:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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