# 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.

> info  **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](https://www.progress.com/documentation/sitefinity-cms/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](https://docs.microsoft.com/en-us/aspnet/core/tutorials/publish-to-iis?view=aspnetcore-5.0\&tabs=visual-studio).
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](https://www.nuget.org/packages/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.

   > info  **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`.
