Try our conversational search powered by Generative AI!

Running EPiServer as a virtual application


I am trying to set up 2 episerver sites that run as virtual applications within the same IIS site, but EPiServer seems to always map to the site mapped with the wildcard in sitehosts.

I have 2 <site> elements

Site 1 has : siteUrl="http://feature1.local/uk/"
Site 2 has : siteUrl="http://feature1.local/us/"

but the sitehosts section seems to only work off domain level, so ignores /uk, /us

The first site loads, but the second complains :

Application is initialized with settings for siteId="US", but current request maps to siteId="UK"


Feb 18, 2013 12:25

I think the solution is just to have seperate code bases with the site hosts wildcard mapping varying for each application

Feb 18, 2013 13:06
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.