November Happy Hour will be moved to Thursday December 5th.

EPiServer CMS 5 R2 Enterprise Configuration Problem

Vote:
 

I have installed a developers enterprise license on and followed all the steps here:

Configuring EPiServer CMS 5 R2 SP1 Enterprise:

http://world.episerver.com/en/Documentation/Items/Tech-Notes/EPiServer-CMS-5/EPiServer-CMS-5-R2-SP1/Configuring-EPiServer-CMS-5-Enterprise/#Configuration%20Restrictions

I have set up the second site in the IIS and pointed it to the same site as the original. The problem is that the new site seem to read the default template, even though the start page id is set correctly to the new top node I created in backoffice.

An example of the <sites> section with 2 sites set up, with <siteHosts> and <siteSettings> would be greatly appreciated.

Here is a simplified version of the sections I added:

 <sites>
  <site siteId="Site1" description="Site 1">
   <siteHosts>
    <add name="client1.company.se" />
    <add name="*" />
   </siteHosts>
   <siteSettings ... pageStartId="1" ... siteUrl="http://client1.company.se/" uiUrl="http://client1.company.se/backoffice/" utilUrl="http://client1.company.se/Util/" siteDisplayName="Client Name 1" ... />
  </site>
  <site siteId="Site2" description="Site 2">
   <siteHosts>
    <add name="client2.company.se" />
   </siteHosts>
   <siteSettings ... pageStartId="2" ... siteUrl="http://client1.company.se/" uiUrl="http://client1.company.se/backoffice/" utilUrl="http://client1.company.se/Util/" siteDisplayName="Client Name 2" ... />
  </site>
 </sites>

 

#28354
Mar 04, 2009 18:02
Vote:
 

Hi Stefan,

Looking at the xml you posted. It looks like you have the same siteUrl for both sites. I.e. http://client1.company.se/ this means that if you try and surf to client1.company.se only Site1 will show. As you have defined that in the siteHosts.

Here is an example of how I have it set up one my dev machine

 <sites>
      <site siteId="ExampleSite1" description="Example Site 1">
        <siteHosts>
          <add name="5enterprisesp" />
        </siteHosts>
        <siteSettings .... siteUrl="http://5enterprisesp/" uiUrl="~/a/" utilUrl="~/Util/"     siteDisplayName="5enterprise" enableEvents="true" enableRemoteEvents="true" />
      </site>
      <site siteId="ExampleSite2" description="Example Site 2">
        <siteHosts>
          <add name="*" language="SV" />
        </siteHosts>
        <siteSettings .... siteUrl="http://5enterprisesp2/" uiUrl="~/a/" utilUrl="~/Util/" siteDisplayName="5enterprise2" enableEvents="true" enableRemoteEvents="true" />
      </site>
    </sites>

#28357
Mar 05, 2009 8:26
This thread is locked and should be used for reference only.
* 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.