Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

How to set multiple domain and backend access

Vote:
 

Hi Team,

I have questions regarding multi-domain.

We need to set up multiple domains (not epi multisite).

a)how to set up multiple domains for the epi site?

example:

1.domain 1 -(site,backend)

2.domain 2 -(site only)

b)Need to restrict the domain2 site epi backend access. How to restrict that access?

c)Is there any license update need for this multi-domain?

Advance thanks,

#206043
Edited, Aug 01, 2019 11:24
Vote:
 

Hi Karyan,

You can set up multiple hosts on the same site within the Episerver admin > Config tab > Manage Websites. Click on the site you want to manage your hosts for and add any domains you need - you don't need an additional license to add hosts to a site, only to create new sites. As shown below, you can also use a wildcard to map any unmapped domain to a given site.

To restrict CMS access to a single domain (for example 'alloy.edit') you can use rewrite rules inside your web.config like this:

<rewrite>
  <rules>
    <rule name="Restrict CMS access" stopProcessing="true">
      <match url="^episerver/" />
      <conditions>
        <add input="{HTTP_HOST}" pattern="^alloy.edit$" negate="true" />
      </conditions>
      <action type="CustomResponse" statusCode="404" statusReason="Not Found" statusDescription="Not Found" />
    </rule>
  </rules>
</rewrite>
#206051
Aug 01, 2019 13:35
* 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.