Reputation: 1459
I have the below sitedefintion.config
in my sitecore instance. I can't figure out what is wrong with this one. When I view the holding.somedomain.com
and somedomain-miles.somedomain.com
it gives me "The requested document was not found" error.
I already verified that the site has a layout. I think the sitedefinition is not working.
What I did so far:
See my site definition:
<site name="website">
<patch:attribute name="rootPath">/sitecore/content/somedomain</patch:attribute>
<patch:attribute name="hostName">somedomain.com</patch:attribute>
<patch:attribute name="startItem">/home</patch>
</site>
<site name="somedomainholdings" patch:before="site[@name='website']"
virtualFolder="/"
hostName="holdings.somedomain.com"
physicalFolder="/"
rootPath="/sitecore/content/somedomainholdings"
startItem="/home"
database="web"
domain="extranet"
allowDebug="true"
cacheHtml="true"
htmlCacheSize="50MB"
enablePreview="true"
enableWebEdit="true"
enableDebugger="true"
disableClientData="false"/>
<site name="somedomainmiles" patch:before="site[@name='website']"
virtualFolder="/"
hostName="somedomain-miles.somedomain.com"
physicalFolder="/"
rootPath="/sitecore/content/somedomainmiles"
startItem="/home"
database="web"
domain="extranet"
allowDebug="true"
cacheHtml="true"
htmlCacheSize="50MB"
enablePreview="true"
enableWebEdit="true"
enableDebugger="true"
disableClientData="false"/>
Upvotes: 0
Views: 1079
Reputation: 1459
Finally got it worked! The issue is the closing </patch>
at the end of <site name='website'>
. It should be </patch:attribute>
.
Marek Musielak, pointed me out on the right direction.
Upvotes: 0
Reputation: 471
You should configure IIS to have only one site for Sitecore with all the bindings for all the different sites in your site definitions added to it. Sitecore is designed to run once on a server and there are many caches that are shared between sites. Also, you should try changing the Database
setting to master
to rule out a publishing issue.
You should also check that the app pool is running clr version 4 and that you have the .net framework installed correctly
Upvotes: 1
Reputation: 3532
Your site definitions file should look something like this:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<sites>
<site name="mysite" patch:before="site[@name='website']"
virtualFolder="/"
physicalFolder="/"
rootPath="/sitecore/content"
startItem="/home"
database="web"
domain="extranet"
allowDebug="true"
cacheHtml="true"
htmlCacheSize="10MB"
enablePreview="true"
enableWebEdit="true"
enableDebugger="true"
disableClientData="false"/>
</sites>
</sitecore>
</configuration>
Also, your IIS configuration should be a single site (probably). Each IIS site counts as a Sitecore instance (and thus counts against your instance number as part of your Sitecore license).
Upvotes: 1