Reputation: 21
I have a general query about configuring multiple sites in Sitecore.
To simplify i would split the question in 2 parts:
I have multiple sites created under a single instance of sitecore on my Win XP machine for e.g http://www.site1.com/
, http://www.site2.com
etc
I then configured my web.config to reflect the multiple sites like so...
<sites>
<site name="website" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/home" database="web" .../>
<site name="website1" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" hostName="www.site1.com" startItem="/home1" database="web" .../>
...
</sites>
Then i made the corresponding host entry in the hosts file.
This works fine and i am able to access multiple sites on a browser.
Problem: The same steps repeated on a Win 2008 R2 system does not work. Do i need to do any additional configuration?
I have downloaded and installed a Multiple Sites Manager package on my existing sitecore installation. After doing that, my existing sites are not loading anymore. What is going wrong here.
I have checked for any web.config entries, or any additional configuration files created in the c:\inetpub\wwwroot\<site>\website
folder but could not find anything.
Any solutions/pointers in this regard would help.
Upvotes: 2
Views: 1864
Reputation: 21
It might be that you access the server efrom a remote client PC - you would need to update the hosts file on the remote client PC, or create an actual host entry in the DNS records.
Is the browser running on the server, or on a remote client?
Regards,
-John
Upvotes: 1
Reputation: 11
It may be the order of your tags. Generally these should go from most explicit to most default. The second one specifies a hostname, so this should go above the one without the hostname.
Upvotes: 1
Reputation: 6042
One possible cause could be that you do not have the correct bindings set up in IIS 7 for the hostnames mapped in your web.config (unless you have a wildcard binding already)?
Upvotes: 1