Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christian Lok 4 posts 24 karma points
    Oct 17, 2010 @ 23:19
    Christian Lok
    0

    Multiple hostheaders, all domain names show 1 site (top node)

    I installed Umbraco for the first time today. I run it on a Win2003 server with IIS6.

    For testing purposes I setup 2 test sites; test1 and test2.

    However, when I view one of these 2 sites, Umbraco always shows me site1 (highest node). On www.test1.nl, as well as on www.test2.nl (domain names mentioned are fictive).

    I've set it up as followed;

    [Content]
    +site1 (hostheader: www.test1.nl)
    +site2 (hostheader: www.test2.nl)

    In IIS both hostheaders are added to the Umbraco site.

    I've set the following parameter in umbracoSettings.config;

    <useDomainPrefixes>true</useDomainPrefixes>

    I have tried to change the sort order in the nodes. This results as expected; the site at the highest node is shown on both domain names.

    What am I forgetting here?

  • Kris Janssen 210 posts 569 karma points c-trib
    Oct 17, 2010 @ 23:27
    Kris Janssen
    0

    You might want to try logging in to both "sites" Umbraco backends (although it is actually one and the same).

    I have to websites running on one Umbraco instance, www.biosensors.be and www.mebios.be .

    I assigned the proper domains to nodes in my content tree but what I experience is that if I make changes to child pages in the biosensors node from www.mebios.be/umbraco these changes will not properly show after a publish (not even after a 'republish all') and vice versa. So for each domain I have to use Umbraco by going to biosensors.be/umbraco or mebios.be/umbraco.

    A bit annoying but still manageable.

    I have a suspicion that this is related to what you are seeing. What happens if you do a republish all in both test1.nl/umbraco and test2.nl/umbraco?

    Cheers,

    K.

  • Christian Lok 4 posts 24 karma points
    Oct 17, 2010 @ 23:46
    Christian Lok
    0

    Thanx for the quick response!

    Unforunately it didn't help.

    I discovered that using a direct path to one of the child nodes DOES show the correct page;

    I guess there is no need to keep the test domains secret;

    test1: http://www.carolienharijgens.nl
    test2: http://runway.christianlok.nl

    both domains show the page that I made under www.carolienharijgens.nl, however, browsing to http://runway.christianlok.nl/installing-runway-modules.aspx does show the runway page, configured under http://runway.christianlok.nl


  • Paul Blair 466 posts 731 karma points
    Oct 18, 2010 @ 00:23
    Paul Blair
    0

    have you republished both sites since changing the useDomainPrefixes setting to true?

    Right click on each top content node and choose Publish and select the box to publish all sub pages.

    (I don't think the "republish entire site" option on the root node does anything but if the above doesn't work you could try that.)

     

  • Christian Lok 4 posts 24 karma points
    Oct 18, 2010 @ 00:26
    Christian Lok
    0

    Yes, I tried both these options. No result...

  • Paul Blair 466 posts 731 karma points
    Oct 18, 2010 @ 00:59
    Paul Blair
    0

    what links are listed on the poperties tab for both home pages?

    And, just to confirm, both domains are at level1 of the content tree directly below the root Content node?

  • Christian Lok 4 posts 24 karma points
    Oct 18, 2010 @ 07:11
    Christian Lok
    0

    Yes, both domains are at level1.

    The links on the properties tab are:

    - http://www.carolienharijgens.nl
    - http://runway.christianlok.nl

  • Paul Blair 466 posts 731 karma points
    Oct 18, 2010 @ 09:01
    Paul Blair
    0

    hmmm, it all looks OK. Do you happen to have a URL re-writing rule that is redirecting carolienharijgens.nl to www.carolienharijgens.nl?

    Something is definently wrong. If I go to http://www.carolienharijgens.nl/contact.aspx it brings up the contact page for the sub-domain. The only thing I can suggest is to rehash everything done so far (but with more paranoria):

     - double check umbracoSettings that useDomainPrefixes is true

     - touch the web.config file

     - right click Content and publish entire site

     - right click each node re-publish

     - re-publish the start page by itself

    I know it's going over things you've already tried but that's all I can suggest.

     

  • Rik Helsen 670 posts 873 karma points
    Oct 18, 2010 @ 10:39
    Rik Helsen
    0

    Try adding both domains to your windows hosts file targetting the server ip, I suspect you made a dns configuration error.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft