Binding Apache proxy sockets to a specific IP
Issue
- I have 2 web sites on the server, each bound to a different IP address on the same subnet and each proxied to a different backend. One of the sites is bound to nic 0 and the other on nic1. Problem is when traffic comes to nic1 it is routed out (proxied through) nic0. How do I get the traffic from nic1 to stay on nic1?
Environment
- Red Hat Enterprise Linux (RHEL)
- 7+
- Red Hat Software Collections (RHSCL)
- 2.0+
- Red Hat JBoss Web Server (JWS)
- 3.0+
- Red Hat JBoss Core Services (JBCS)
- 2.4.23+
- Apache httpd
- 2.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.