How do I setup a second site in episerver?

  • Page Owner: Not Set
  • Last Reviewed: 2018-09-04

How do I create a second site within Episerver's CMS?

I'm looking for configuration of IPs and start pages.

Comments

  • As in single Episerver install, multiple sites?
  • Yes, a single Episerver install with a second or third site running.

Additional Posts

So you create another start node in the tree, then in admin mode, you go to the config tab, then manage websites, then enter you new site and it will ask you where your new home page is for the site you are creating.

http://webhelp.episerver.com/latest/cms-admin/managing-websites.htm

To add Joshua's answer, if you're running the site in IIS Express, you'll need to add another binding for the other site to run on. IIS Express doesn't support any domain other than localhost, so you'll need to add it on another port.

For VS 2017, in the Web project, there is a file at ./.vs/config/applicationHost.config (this path might be slightly different for VS 2019, but check the .vs folder). Open this file in an editor and look for the <sites> node. You should see a site for your set up (sometimes there are multiple sites for some reason). Find the bindings and add a new binding for a different port. It'll look something like this:

<site name="Web" id="2">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="C:\Path\To\Project\Web" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation="*:49497:localhost" />
        <binding protocol="http" bindingInformation="*:49498:localhost" />
    </bindings>
</site>

Then in the Episerver sites maintenance area, assign your new site to http://localhost:49498/ or whatever your new port happens to be.