Host 2 optimizely sites, as 2 applications, under one IIS site?

Vote:
 

Hi!

Is it possible to host 2 different optimizely sites, as 2 applications under one IIS-site like this?

ExampleSite (with port 80/443, and binding www.examplesite.com)
--Portal1
--Portal2

Then Id like to reach each site by url:s

www.examplesite.com/Portal1

www.examplesite.com/Portal2

The important part being that they keep their application prefix for all URL:s? 

I tried setting this up but with no luck , Im guessing Episerver routing might not like this?

Im using CMS 12 and IIS 10 on windows server 2022

regards

/Rickard

#291640
Nov 14, 2022 14:24
Vote:
 

Are these two sites using the same codebase ? If so im unsure why you would need two different applications just setup in your page tree like this

If you do need them as two seperate applications although with the same toplevel domain than each site in a seperate folder you will need to use a reverse proxy (You may need multiple licenses for this)

See here for example : https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing

#291660
Edited, Nov 14, 2022 22:33
Vote:
 

Its two independent sites with different codebase. Ill try it with url rewrite. Thanks for your help!

#291695
Nov 14, 2022 23:01
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.