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

The following procedure describes how to host both Sitefinity CMS and the ASP.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 ASP.NET Core Renderer.
  2. Host Sitefinity CMS by performing procedure Run projects on IIS.
  3. Host the ASP.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 ASP.NET Core Renderer application.
  5. Download the NuGet package Progress.Sitefinity.Cloud.AppGatewayHostRewriteModule.
  6. Change the file extension from .nupkg to .zip and extract the files.
  7. In the extracted folder, navigate to the Content folder.
  8. Copy the HostRewriteModule.dll and paste in a dedicated folder.

    NOTE: The folder must to be accessible by the IIS. The file must remain in this folder for as long as the extension is used. Deleting the file or its folder can cause issues.

  9. Open Internet Information Services (IIS) Manager.
  10. At the top, select your server and click Modules.
  11. Click Configure Native Modules » Register.
  12. Set the name to AppGatewayHostRewriteModule
  13. In Path, navigate to the HostRewriteModule.dll, select it, and click OK.
  14. Ensure the checkbox next to AppGatewayHostRewriteModule is selected and click OK.
  15. Because both applications are on the same machine, set the Sitefinity CMS binding to localhost on port 8080.
  16. Open the appSettings.json of the ASP.NET Core Renderer application.
  17. In the Sitefinity object, add the property "HostHeaderName": "X-Original-Host"
  18. Update the URL property to "http://localhost:8080"
  19. 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?