Copied to clipboard

Flag this post as spam?

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


  • malar 97 posts 206 karma points
    Feb 15, 2018 @ 19:20
    malar
    0

    Multiple Site on a single instance in umbraco

    Hi

    I need to run multiple site on a single instance in umbraco. I searched in Google and umbraco forum. I did not get it. Can you please guide me to do that.

  • Joshua Lemli 52 posts 234 karma points
    Feb 15, 2018 @ 19:36
    Joshua Lemli
    0

    When you say "run multiple sites", do you mean that you want:

    1) multiple domains to point to the same content?

    2) multiple root content nodes available from the same domain?

    3) multiple root content nodes available from multiple domains?

    Any of these can be handled with a combination of configuring your server and customizing (or correctly configuring) Umbraco. Remember, Umbraco is also just a component of your site. It's just a package! You can build on top of ASP.NET / MVC in addition to building with Umbraco.

    Also, Umbraco is not "designed for" managing multiple sites. It's a CMS. So really, the question is, why do you want to even do this? If you can answer that, you may find better paths forward to solve your particular challenges.

  • Lewis Smith 208 posts 617 karma points c-trib
    Feb 16, 2018 @ 08:10
    Lewis Smith
    0

    Hi,

    It is possible, I have done this before when working on client websites. It can become a bit of a mess as both sites have to be built in Umbraco so data types, doctypes etc can be a bit messy. You have to use the culture and hostnames section on each of the root notes to point to a different domain. (Use a hostfile hack when developing on localhost to see both the different websites)

    If you do a search into Umbraco culture and hostnames you should get a good description and guide on how to set this up!

    Thanks, Lewis

  • malar 97 posts 206 karma points
    Feb 19, 2018 @ 10:44
    malar
    0

    Hi,

    First i created Demo Folder , I clicked Demo folder , it was displaying the following pictureenter image description here

    I chose Manage hostnames and click , it was displaying the following picture enter image description here

    I entered domain name and language. enter image description here

    The link is not working , How can i do that. Can you please help me enter image description here

  • malar 97 posts 206 karma points
    Feb 19, 2018 @ 18:35
    malar
    0

    Can you please help me anyone.

  • Nigel Wilson 944 posts 2076 karma points
    Feb 19, 2018 @ 18:42
    Nigel Wilson
    0

    Hi Malar

    Typically the URL you have defined is only run when debugging in Visual Studio, and so personally I wouldn't try and get things working this way.

    Instead what I have done in the past on my local machine is setup IIS with 2 websites, e.g. http://mysite.local and http://blog.mysite.local - point them both to the same physical directory of your site, but then configure the host names for your main home page and your demo homepage.

    This should get things working for you, however this suggestion doesn't provide an ideal setup to be able to debug code if you need to - you would still have to run in debug mode in Visual Studio if you are using it and navigate manually to your demo site, e.g. copy paste the URL into the browser but put the "localhost/ port number" bit at the start of the URL.

    Hope this helps.

    Nigel

  • malar 97 posts 206 karma points
    Feb 19, 2018 @ 18:48
    malar
    0

    Hi Nigel,

    Thank you.

    I cannot see your e.g links http://mysite.local/ and http://mysite.local/ When i open that links , it is displying error:

    This site can’t be reached mysite.local’s server IP address could not be found. Search Google for mysite local ERRNAMENOT_RESOLVED

  • Nigel Wilson 944 posts 2076 karma points
    Feb 19, 2018 @ 18:53
    Nigel Wilson
    1

    Malar

    They were examples only - in no way would they work for you without you doing something on your own computer.

    As stated, YOU need to setup sites in IIS on YOUR computer - if you do not know how to do this, then I suggest doing some research on this aspect.

    Nigel

  • Joshua Lemli 52 posts 234 karma points
    Feb 19, 2018 @ 19:03
    Joshua Lemli
    0

    Malar,

    As I stated in my original reply to this topic, I think you need to do some investigation into networking, DNS, and hosting in general.

    You seem to be confused about where the URL in your browser is coming from, and where it's going!

    IIS-express typically manages that stuff (on Windows) if you are developing locally. I might start by learning about IIS and what it does.

    Also, "localhost" is special (on Windows) -- it is already setup to point to files on your own machine. Maybe some reading about how this works?

    Again, Umbraco is a CMS! You need to understand some basic networking/hosting/CMS concepts before you can jump into complex challenges like managing multiple sites with a single CMS installation!

Please Sign in or register to post replies

Write your reply to:

Draft