CNAME - how will the url be in the http request

A newbie question regarding dns records

Let's say I've configured, abc.example.com -> A 10.x.x.x

and a CNAME for xyz.example.com CNAME for xyz.example.com -> abc.example.com

when a user does an http request for xyz.example.com what happens when the request reach the 10.x.x.x server. Will the URL be abc.example.com or xyz.example.com? (trying to find out if virtual host in apache need to be updated)

Thanks much


Solution 1:

It will be xyz.example.com - the Host: header will contain the origially requested domain, not the canonical one from DNS

Solution 2:

The virtual host (as sent in the host header) will be exactly what the user typed into the address field, unless you do some kind of redirect on the server.

Solution 3:

I agree with answer from Paul Dixon and calmh.

As far as my understanding goes, in normal conditions the header will be xyz.example.com, only an explicit redirect, not in the DNS server but an Reverse Proxy or on the Webserver can eventually change the HTTP header of the request.