Host Sitefinity CMS and the .NET Core Renderer on the same IIS

The following procedure describes how to host both Sitefinity CMS and the .NET Core Renderer applications on the same IIS instance.

Perform the following:

  1. Create two websites in IIS - one for Sitefinity CMS and one for the .NET Core Renderer.
  2. Host Sitefinity CMS by performing procedure Run projects on IIS.
  3. Host the .NET Core Renderer on IIS by following Microsoft documentation » Publish an ASP.NET Core app to IIS.
  4. Place the public domains of all of your Sitefinity CMS sites on the .NET Core Renderer application.
  5. Open the web.config file of your Sitefinity CMS.
  6. Inside the <system.webServer> config element, add the following rewrite rule:
  7. Save and close the web.config.
  8. In the IIS, allow the HTTP_HOST server variable on the Sitefinity CMS application in the following way:
    1. In the Sites dropdown, select the Sitefinity CMS application.
    2. Under HTTP Features, click URL Rewrite.
    3. In the right sidebar, click View Server Variables » Add.
    4. For the name of the variable, enter HTTP_HOST and click OK.
      It appears in the list of allowed variables with Entry Type set to Local.
    5. Because both applications are on the same machine, set the Sitefinity CMS binding to localhost on port 8080.
  9. Open the appSettings.json of the .NET Core Renderer application.
  10. In the Sitefinity object, add the property "HostHeaderName": "X-Original-Host"
  11. Update the URL property to "http://localhost:8080"
  12. Save and close the appSettings.json.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?