I have a haproxy configuration that works well. Except that I added a new server to serve static pages. Relevant parts of haproxy.cfg
backend nodes mode http option forwardfor server arizona 204.xxx.xxx.xxx:8090 check #server texas 192.xxx.xxx.xxx:80 check
Until now, I only had one server "Arizona" and everything worked fine. When a user visits www.mydomain.com/contactus.html, the request is processed by the Arizona server and the user continues to see www.mydomain.com/contactus.html in the bar. address.
When I comment on an Arizona server and comment on a Texas server, the transfer still works, except that the user sees 192.xxx.xxx.xxx/contactus.html in the address bar.
The Arizona server runs apache2 on Ubuntu and the Texas server runs nginx on Ubuntu. I do not understand why the server's IP address is set in the browser's address bar when I switch to the texas server. Apart from apache2 and nginx, there is no difference between the two servers. There is no transfer in the nginx configuration.