Try our conversational search powered by Generative AI!

Multiple Sites Configuration Problem


We are having some issues with configuring multiple EPiServer sites against one codebase.   The default siteHosts (<siteHosts><add /></siteHosts>) is always getting used because it isn’t matching on other configured site hosts.  For example, with as one of additional sites in the configuration, it doesn’t match on it and uses the default site configuration instead.  Upon investigation of the problem, I found that the HttpContext.Current.Request.Url.Host is different from the URL in the browser.  The host is that of the computer name (http://somecomputer.domain.internal) instead of the IIS configured host name (  Any ideas as to what would be causing this?  It seems to be something that EPiServer is doing to the Http Request object.  This only happens with EPiServer sites which leads me to believe that the request is somehow modified by EPiServer.  Please advise.

Jan 11, 2011 0:00

Do you have an enterprise license? It will not work with a "normal" license.

You do not include http/https in the sitehosts section? (you shouldn't)

Any proxy servers or firewalls involved in the infrastructure? There are several places that could be tampering with the network traffic... EPiServer does not behave like you describe unless you have some custom url rewriting code.

Jan 19, 2011 8:21
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.