I have a bit of a problem getting our server to know what domain was requested to get to the server. The scenario is like this. site1.com, site2.com, site3.com and site4.com are all pointing to the CDN. The CDN is set up to pull data from one server. Let's name it origin.com.Now the problem comes when a customer types site1.com. That's what they see, which is a good thing. But on the server side, it sees the request as origin.com because that's what the CDN requested from it.  I do not see headers that are passed by the CDN like X-FORWARDED-FOR where we can still capture origin information.Basically, I will need the server to catch which domain the user actually requested from the server side without using Javascript and sending cookies to the server containing requested URL.Is this possible or am I delusional on trying to get this info server-side?
How to pass requested domain to server when behind a CDN
domains;apache2;cdn;http headers;server side scripting