Nginx and Websphere

sampy nginx-forum at nginx.us
Tue May 26 10:36:35 UTC 2015


Hi all!

I'm new in NGINX but I have try everything with very bad results. My
scenario is:

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.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259127,259127#msg-259127



More information about the nginx mailing list