How to pass requested domain to server when behind a CDN

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 site1.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?

Replay

Category: domains Time: 2016-07-30 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.199 (s). 12 q(s)