# Host Sitefinity CMS and the Renderer on Azure App Services

## Configure the Renderer for Azure App Services

If your project is hosted on Azure App Services, you need to make some specific settings, so that your Renderer application can communicate with Sitefinity CMS.

You need to make changes to the `appSettings.json` file of your Renderer application.

If you are using a domain for Sitefinity CMS other than the default azure domain, specified as *yoursite.azurewebsites.net*, open the `appSettings.json` file of the Renderer application and set the `HostHeaderName` settings to equal `X-Original-Host` by adding the following:

```JSON
"Sitefinity": {
  "Url": "https://mycustomdomain.net",
  "WebServicePath": "api/default",
  "HostHeaderName": "X-Original-Host"
},
```

## Configure Sitefinity CMS for Azure App Services

If your project is hosted on Azure App Services, you need to make some specific settings, so that your Sitefinity CMS can communicate with the Renderer application.

In addition to the above procedures, perform the following:

1. Set up a 64-bit process in the App Service platform configuration.  To do this, perform the following:
   1. In the Azure portal, click your service.
   2. Under *Settings*, click *Configuration*.
   3. Click *General settings*.
   4. In *Platform* dropdown box, select *64 Bit*.
   5. Restart the app service.
2. Rewrite the X-Original-Host header sent from the Renderer to Host header.  To do this, install an additional extension from the Kudu console in the following way:
   1. In the Azure portal, click your service.
   2. In the sidebar, under *Development tools* section, click *Advanced Tools* » *Go*.
   3. In the Kudu console, expand the *Site extensions*.
   4. Search for the *Application Gateway Host Rewrite Module* and follow the installation instructions.
   5. Restart the Kudu service.
