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.
site4.tld are all pointing to the CDN. The CDN is set up to pull data from one server. Let's name it
Now the problem comes when a customer types
site1.tld. That's what they see, which is a good thing. But on the server side, it sees the request as
origin.tld 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.
Is this possible or am I delusional on trying to get this info "server-side?