Copied to clipboard

Flag this post as spam?

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


  • Francesco 4 posts 84 karma points
    Jan 25, 2017 @ 10:56
    Francesco
    0

    Umbraco multisite installation with multiple IIS sites

    Hello, I'm new to Umbraco, I hope someone help me with a problem.

    I have a single Umbraco installation with multiple site. My goal is to manage each site with a different IIS site (each one with it's own application pool). Does Umbraco supports this type of configuration? Every help is a appreciated.

    Thank you, I'm sorry if I've duplicated question but I didn't find a definite response.

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Jan 29, 2017 @ 21:50
    Alex Skrypnyk
    0

    Hi

    The only way to have multiple applications pools for one web-sites on IIS is to split the site up into various applications, you always have the root application and potentially multiple application below it.

    Each application can be assigned its own application pool.

    But after splitting a site into various applications it doesn't behave as a single entity anymore, there are many things you can no longer do between these now separated parts of your site.

    Without knowing the details it is difficult to diagnose why your second application pool fails. It may run under a different account, sessions are no longer shared etc.

    There is nothing inherent in IIS that prevents you from running a site with various appPools, but each application is its own thing.

    Thanks,

    Alex

  • Francesco 4 posts 84 karma points
    Jan 30, 2017 @ 09:01
    Francesco
    0

    Hi Alex, thanks for replying. I try to explain my situation in more details. I set up two Umbraco websites in the same Umbraco installation, like in the screenshot below. enter image description here If I manage both sites with the same IIS site (one IIS site, one aplication pool, two bindings) everything runs correctly. If I create another IIS site (so my configuration become two IIS sites, two application pools) and try to manage each website with it's own IIS site, the first one responds correctly, the second one responds with the error "The view found at '~/Views/Home.cshtml' was not created". enter image description here I tried to reproduce the same configuration in another environment but the result is the same. So I don't understand where I'm getting wrong.

    Thanks, Francesco

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Jan 30, 2017 @ 20:56
    Alex Skrypnyk
    101

    Francesco, I'm not sure that you can point two websites to one root folder.

    What if these websites will change the same file simultaneously?

  • Sjors Pals 617 posts 270 karma points
    Jan 30, 2017 @ 10:37
    Sjors Pals
    0

    Hi Franseco, can you explain why you want to do this? I know this used to be the way how you run multiple sites in Episerver, but in Umbraco this is not common practice.

  • Francesco 4 posts 84 karma points
    Feb 01, 2017 @ 09:22
    Francesco
    0

    Ok, I got it. My client would like to replicate the configuration he has now on DotNetNuke. But, if it is a bad practice in Umbraco, I'll try to convince him.

    Thanks for the support, Francesco

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Feb 01, 2017 @ 09:31
    Alex Skrypnyk
    0

    You are welcome, Francesco

    Have a nice day and do not forget to share experience in this community/

  • Fergus Davidson 309 posts 588 karma points
    Apr 21, 2017 @ 16:05
    Fergus Davidson
    0

    I have this same issue exactly. I need to have the different IIS sites as each website will have HTTPS and therefore needs its own IP address.

    Does anyone have any idea as to how i might achieve this?

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Apr 21, 2017 @ 16:44
    Nicholas Westby
    0

    I need to have the different IIS sites as each website will have HTTPS and therefore needs its own IP address.

    I don't follow. Why would they need their own IP address?

    Both of these sites are HTTPS and run on the same instance:

    They have the same IP address.

  • Sebastian Ferrari 12 posts 84 karma points
    May 03, 2017 @ 19:05
    Sebastian Ferrari
    0

    Hi Nicholas,

    How do you do it? Because I'm trying a similar thing but there is an extra "home" at the end of the url:

    Thanks

    Sebastian

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    May 03, 2017 @ 22:31
    Nicholas Westby
    0

    How do you do it? Because I'm trying a similar thing but there is an extra "home" at the end of the url:

    You probably want to set this in your web.config:

    <add key="umbracoHideTopLevelNodeFromPath" value="true" />
    

    More info here: https://our.umbraco.org/documentation/reference/config/webconfig/

  • Sebastian Ferrari 12 posts 84 karma points
    May 04, 2017 @ 14:19
    Sebastian Ferrari
    0

    Hi Nicholas,

    I had already set this to true, I don't know what is happen. Could be because I don't have the home as root?

    enter image description here

    Commercial and HIMP are empty Document Types that we use as a Folders.

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    May 05, 2017 @ 05:35
    Nicholas Westby
    1

    When nodes have the hostname set on them? Should be each of the home nodes. Perhaps you have it set on the parent nodes instead (i.e., "Commercial" and "HIMP")?

  • Sebastian Ferrari 12 posts 84 karma points
    May 05, 2017 @ 14:53
    Sebastian Ferrari
    0

    You are awesome! :) That was my mistake.

    Thanks and Great Weekend!

    Sebastian

  • Fergus Davidson 309 posts 588 karma points
    Apr 21, 2017 @ 16:50
    Fergus Davidson
    0

    Is that in IIS 8?

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Apr 21, 2017 @ 16:54
    Nicholas Westby
    0

    Yeah, IIS 8.5 IIRC. Are you on an earlier version of IIS that doesn't support SNI?

  • Fergus Davidson 309 posts 588 karma points
    Apr 21, 2017 @ 16:56
    Fergus Davidson
    0

    Yep, should have said that - i am on IIS7

    still we are due an upgrade, so looking into that now.

    Thanks Nicholas

Please Sign in or register to post replies

Write your reply to:

Draft