I need to server parts of my application from different domains. To be precise I have a sub section of the site that should be served from a region specific domain. For exam
I think you want Request.Headers["host"]
HttpContext.Current.Request.Url.Host
string requestedDomain = HttpContext.Current.Request.ServerVariables["HTTP_HOST"];
string requestScheme = HttpContext.Current.Request.Url.Scheme;
string requestQueryString = HttpContext.Current.Request.ServerVariables["QUERY_STRING"];
string requestUrl = HttpContext.Current.Request.ServerVariables["URL"];