Copied to clipboard

Flag this post as spam?

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


  • Yannick Smits 321 posts 718 karma points
    Apr 20, 2011 @ 15:31
    Yannick Smits
    0

    Debug in multi-site environment

    I'm trying to setup a debug session on http://localhost:57670/ which works but only for the top-most site. My umbraco has several sites with different hostnames, so how do I access these sites? I tried adding localhost:57670 and localhost to the manage hostnames screen which doesn't work as expected

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Apr 20, 2011 @ 15:46
    Jeroen Breuer
    0

    First you need to run the website in IIS. This way you can visit the website on http://localhost/. After that it should work by doing something like this in the hosts (C:\Windows\System32\drivers\etc) file:

    127.0.0.1  project1.com
    127.0.0.1 www.project1.com
    127.0.0.1 project2.com
    127.0.0.1 www.project2.com

    Than if you set the hostname in Umbraco to project1.com and you go to that url it should work.... works for me :).

    Jeroen

  • Yannick Smits 321 posts 718 karma points
    Apr 20, 2011 @ 16:09
    Yannick Smits
    0

    he Jeroen, thanks that should work. 

    I just found an easier way which is to just set the useDomainPrefixes setting to false for debugging.

  • Yannick Smits 321 posts 718 karma points
    Dec 05, 2011 @ 22:15
    Yannick Smits
    0

    thanks Yannick, works like a charm.

    Always great to find your own answers after 8 months..

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies