Nginx and Websphere
Francis Daly
francis at daoine.org
Tue May 26 23:39:33 UTC 2015
On Tue, May 26, 2015 at 06:36:35AM -0400, sampy wrote:
Hi there,
> NGINX balancing over 2 servers using ip_hash. This servers runs Websphere
> and in every Websphere runs several apps.
>
> Servers separately runs:
>
> wasint-1.domain.com:9080/WebApp
> wasint-2 domain.com:9080/WebApp
>
> My configuration:
>
> upstream webint {
> ip_hash;
> server wasint-1.domain.com:9080;
> server wasint-2.domain.com:9080;
> }
>
> server {
>
> listen 80;
> server_name web.domain.com;
>
>
> location / {
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
> proxy_pass http://webint/WebApp;
> }
>
> }
>
> All seems to be ok, but when I type in the web browser http://web.domain.com
> doesn´t work.
What does "doesn't work" mean?
What response do you get?
What response did you want to get instead?
What response do you get if you do
curl -H Host:web.domain.com -i http://wasint-1.domain.com:9080/WebApp
from the nginx server?
Does that match one of the previous two answers?
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list