We have two domains pointed to an IP on an Apache Server on a Centos 7 box.
domain1.com & domain2.com
What setting do we need to set so that if someone types in
it doesn't redirect to
Both of these domains are pointed to the same IP. But in Apache they are of course pointed to separate folders. Currently if you type in www.domain2.com
it goes to the website for Domain1.com.