Host Sitefinity CMS and the 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.

PREREQUISITES: You must have installed Microsoft Visual C++ Redistributable.

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.

Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
New to Sitefinity?