Configuring the CD server (Only for ZIP package installation)

If you install SXA from a ZIP package in a scaled topology (for example, XM1 or XP1), configure the CD server manually.

Warning

The Azure App Service has a 230-second timeout for each request. If you install SXA in an existing Azure Sitecore solution, consider temporarily scaling up to a higher service tier to avoid request timeouts.

To deploy SXA to a CD environment, download the Sitecore Experience Accelerator CD package. Extract the package, then extract package.zip. From the files folder, copy these five folders to your Sitecore instance:

  • App_Config
  • bin
  • sitecore
  • sitecore modules
  • Views
Note

If prompted, overwrite the existing files.

In the Web.config file on the CD server, add the following key to the <appSettings> section. Use the value that matches your topology:

XM:

<add key="sxaxm:define" value="sxaxmonly" />

XP:

<add key="sxaxm:define" value="sxaxconnect" />

In the same file, replace the existing media handler entry:

<add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler"/>

With:

<add verb="*" path="sitecore_media.ashx" type="Sitecore.XA.Foundation.MediaRequestHandler.MediaRequestHandler,Sitecore.XA.Foundation.MediaRequestHandler" name="Sitecore.MediaRequestHandler"/>
If you have suggestions for improving this article, let us know!