I have a site www.example.com and example.com configured at x.x.x.190 At the moment, foo.example.com is also configured at the same ip. In the DNS server www is a CNAME alias for example.com
How can I make it so that when a request like http://x.x.x.190 is made, the server serves the content of www.example.com, just like if the request was http://www.example.com or even http://example.com? Is changing the ip of foo.example.com to a different one enough?
Thank you very much.