Trouble migrating from pound to nginx

Hi.

I have some trouble here migration from the loadbalancer pound to nginx.
Nginx should be running as a loadbalancer for our webapplications which
are
hosted on apache webservers in our lan.

The basic configuration looks like this:

lb(nginx) -----> two webservers(apache) -----> one or more
applicationserver(glassfish)

The old configuration is the same, we only used pound instead of nginx.

But for any reason the the webapplication wouldn’t be delivered and I
got
the apache default site instead.

I posted my configuration to pastbin.com. Please note that I anonymized
hostnames, domainnames and ips.

Thanks in advance for helping me.

Best Regards,
Joerg

I’m on a sufficiently dreadful connection that I can’t examine your
configs on pastebin. Having said that, I strongly suspect you’re not
propagating a Host header from NginX to your Apache servers. Fix that
up, and I think you’ll have more success.

Regards,
Jonathan


Jonathan M.
Oxford, London, UK
http://www.jpluscplusm.com/contact.html

You’re right. I added the following line to my location block:

proxy_set_header Host “my.forced.hostname”;
Now I get the expected Site. Thanks for your support.

2013/4/22 Jonathan M. [email protected]