Copied to clipboard

Flag this post as spam?

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


  • Saied 349 posts 674 karma points
    Nov 23, 2015 @ 13:14
    Saied
    0

    Use 2 websites under same instance with localhost?

    I have two websites (root nodes) under one umbraco instance:

    • websiteone
    • websitetwo

    When I run the debugger in visual studio, it opens up one of the instances at http:\\localhost and the other gets opened up as http:\\localhost\websitetwo, but when I navigate to another page like support, it goes to http:\\localhost\support - which is the support page for websiteone.

    What I would like to achieve is to be able to go to something like dev.websiteone and navigate the structure of websiteone and go to dev.websitetwo and navigate websitetwo. If both websites are under the same instance and in visual studio run under http:\\localhost:58705 for example, how is this possible? It seems only one website can actually point to localhost. How does umbraco decide this? What I did was basically remove any host names from my local development?

  • Alex Skrypnyk 6147 posts 24056 karma points MVP 8x admin c-trib
    Nov 23, 2015 @ 17:25
    Alex Skrypnyk
    0

    Hi Saied,

    Can you show your Umbraco structure?

  • Saied 349 posts 674 karma points
    Nov 23, 2015 @ 17:31
    Saied
    0

    Alex,

    Here is a screenshot:

    enter image description here

  • Alex Skrypnyk 6147 posts 24056 karma points MVP 8x admin c-trib
    Nov 23, 2015 @ 17:36
    Alex Skrypnyk
    0

    Saied, did you add your local hosts to the Umbraco host management system ?

  • Saied 349 posts 674 karma points
    Nov 23, 2015 @ 17:39
    Saied
    0

    Sorry, a bit confused, when you say host management system, are you referring to the culture and hostname properties. If yes, I left those blank. It looks like this for both sites:

    enter image description here

  • Alex Skrypnyk 6147 posts 24056 karma points MVP 8x admin c-trib
    Nov 23, 2015 @ 17:40
    Alex Skrypnyk
    0

    Yes, I mean the culture and hostname properties.

  • Saied 349 posts 674 karma points
    Nov 23, 2015 @ 18:35
    Saied
    0

    Alex,

    I tried putting in 127.0.01 dev.sctflash.com in my hosts file, but it just goes to the default IIS welcome page. Even if this worked, how could I have:

    127.0.0.1 dev.sctflash.com

    127.0.0.1 dev.bullydog.com

Please Sign in or register to post replies

Write your reply to:

Draft