Configure hostnames for Umbraco 13 install
l
I'm trying to setup 2 sites under one Umbraco 13 install, so site-a.com and site-b.com, each having a 'home' page in the roof of Umbraco content. I had this working in Umbraco 7 many moons ago, but this is the first time I have set this up in many years. I have tried a few things, nothing has worked. In an ideal world, I would like my local dev setup to be the same as how i have it configured on live, maybe with test- at the start of the url. Does anyone have any guidance on how exactly i can get this working, any fairly recent articles? I found this https://docs.umbraco.com/umbraco-cms/tutorials/multisite-setup but it seems specific to Umbraco cloud, which were not using in production.
r
This part is relevant to all umbraco configurations: Replace the cloud part with your own hosting setup for urls, but yeah, the rest of the page is still relevant
l
Thanks @Rachel D, any suggestion on how i can get this setup to develop against locally? Ideally, i would like two localhost:ports running, or something like that so i can develop both in parallel?
I have messed with IIS but cant seem to get it up and running
r
You can set up the urls as you like in the culture and hostnames option for the respective home nodes, as shown in this image: https://cdn.discordapp.com/attachments/1242179957522960475/1242183169961365566/image.png?ex=664ce8ba&is=664b973a&hm=58398806c0e99a0f23a598e90d658e56d91026c48afe7097465b2086190beb96&
You'll want to do that for each environment, and it should match however it's set up in IIS
k
We've used
/
/site1
/site2
in development (i.e., "Swato site" would be configured only with the "Domain"
/site2
in your case) to build/test multi-root-node sites, but it requires of course that all sites are "fully relative" which is rarely the case. If you use IIS, you can use real localhost URLs like
site2.localho.st
for the sites. All of this except the IIS bindings is configured in Culture & Hostnames on the root-nodes.
47 Views