---
title: Reference - Web.config application keys
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

&#x20; The system settings include _appSettings_ keys and other settings, such as a connection string placed in appropriate sections of the project's **web.config** file. AppSettings keys are stored in the **/configuration/appSettings** section.

The following setting categories are available:

## General settings

| Key                                     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Default                         |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| CMSProgrammingLanguage                  | Indicates the programming language used in transformations and in custom code added to web parts.<br>**Note**: Existing transformations are not automatically rewritten to the new language. We only recommend changing the value before starting the project's development phase.<br>`  <add key="CMSProgrammingLanguage" value="C#" />
 `<br>or<br>`  <add key="CMSProgrammingLanguage" value="VB" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | C#                              |
| CMSTrialKey                             | Contains a temporary trial license key. You can remove this value after installation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | "" (empty string)               |
| CMSHashStringSalt                       | Sets the [salt](http://en.wikipedia.org/wiki/Salt_%28cryptography%29) value that the system uses in hash functions, for example when creating [macro signatures](https://docs.kentico.com/k9/macro-expressions/troubleshooting-macros/working-with-macro-signatures.md). The installer automatically adds the key for new instances of Kentico, with a random [GUID](http://en.wikipedia.org/wiki/GUID) as the value.<br>**Note**: Changing the hash salt on a website that already has defined content may prevent macros from resolving correctly, or break dialog links and images on your website. If you encounter such problems, you need to re-save the given content or globally re-sign macros (the system then creates the hashes using the new salt).<br>`  <add key="CMSHashStringSalt" value="eb2d6fac-8b9e-427c-b98b-3c562dffbb35" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Random GUID                     |
| CMSUseVirtualPathProvider               | Indicates if the virtual path provider is enabled.<br>The system uses the virtual path provider to load virtual objects, such as ASCX [transformations](https://docs.kentico.com/k9/developing-websites/loading-and-displaying-data-on-websites/writing-transformations.md) and [page layouts](https://docs.kentico.com/k9/developing-websites/developing-websites-using-the-portal-engine/editing-page-layouts.md), from the database.<br>`  <add key="CMSUseVirtualPathProvider" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | true                            |
| CMSRenderGeneratorName                  | Indicates if the 'generator' meta tag stating that the page was generated by Kentico is generated in the header of each page.<br>`  <add key="CMSRenderGeneratorName" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | false                           |
| CMSClearFieldEditor                     | Determines field editor behavior when creating new fields. If true, new fields will have empty values of attributes. If false, new fields will have pre-defined values, the same as the previously selected field.<br>`  <add key="CMSClearFieldEditor" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | true                            |
| CMSShowTemplateASPXTab                  | Indicates whether the **ASPX code** tab is visible when editing [page templates](https://docs.kentico.com/k9/developing-websites/managing-page-templates.md). The tab allows you to export [portal engine templates](https://docs.kentico.com/k9/developing-websites/developing-websites-using-the-portal-engine.md) as [ASPX page templates](https://docs.kentico.com/k9/developing-websites/developing-websites-using-aspx-templates.md).<br>`  <add key="CMSShowTemplateASPXTab" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | false                           |
| CMSDatabaseCulture                      | Specifies the default culture of the system's database.<br>`  <add key="CMSDatabaseCulture" value="en-us"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | en-us                           |
| CMSDisposeConnectionAfterClose          | If true, database connection is automatically disposed (allocated resources released) when a database connection is closed.<br>`  <add key="CMSDisposeConnectionAfterClose" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | false                           |
| CMSUseSessionCookies                    | Indicates whether session cookies are used.<br>`  <add key="CMSUseSessionCookies" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | true                            |
| CMSFileScriptTimeout                    | The maximum number of seconds a script can run before the server terminates it.<br>`  <add key="CMSFileScriptTimeout" value="7200"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | 7200                            |
| CMSUseExtensionOnPostback               | When using [extensionless URLs or custom extensions](https://docs.kentico.com/k9/configuring-kentico/configuring-page-urls/extensionless-and-custom-urls.md), certain legacy environments had problems processing postbacks. To prevent the postback problems, the system retains the ability to automatically attach the _.aspx_ extension to the URL in the form tag.<br>Set the key to _true_ to attach the _.aspx_ extension in postback URLs.<br>`  <add key="CMSUseExtensionOnPostback" value="false"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | false                           |
| CMSUseTrailingSlashOnlyForExtensionLess | If the **Use URLs with trailing slash** setting is enabled in **Settings -> URLs and SEO**, this key determines whether the system adds a trailing slash only for URLs without an extension.<br>For example, enabling the key ensures that URLs such as _/googlesitemap.xml_ do not have a trailing slash.<br>`  <add key="CMSUseTrailingSlashOnlyForExtensionLess" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | false                           |
| CMSAllowCheckIOPermissions              | If true, write permissions on the site folder are checked when necessary and produce an error message when they are insufficient.<br>`  <add key="CMSAllowCheckIOPermissions" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | true                            |
| CMSWorkflowSendEmailToModerator         | If true, workflow notification emails will be sent to the user who is performing the current workflow step along with other users involved in the workflow.<br>`  <add key="CMSWorkflowSendEmailToModerator" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | false                           |
| CMSControlElement                       | If present in the web.config, the tag entered in the value will be used instead of the SPAN tag when generating pages.<br>`  <add key="CMSControlElement" value="div"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | span                            |
| CMSUseParsedSelfClose                   | Indicates if parsed self closing tags operations (faster) are used instead of standard self close filter.<br>`  <add key="CMSUseParsedSelfClose" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | true                            |
| CMSGetFileEndRequest                    | If true, _ApplicationInstance.CompleteRequest()_ is used instead of _Response.End()_ in the _CompleteRequest_ method.<br>`  <add key="CMSGetFileEndRequest" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | true                            |
| CMSDefaultUserID                        | Specifies default user ID.<br>`  <add key="CMSDefaultUserID" value="53"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | 0                               |
| ImportFilesDiskPath                     | Specifies path to attachments that should be attached to pages imported via the SQL Import windows application.<br>`  <add key="ImportFilesDiskPath" value="C:\Temp"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | "" (empty string)               |
| CMSDeleteTemporaryAttachmentsOlderThan  | Specifies how old attachments need to be in order to be deleted by the **Delete old temporary attachments** [scheduled task](https://docs.kentico.com/k9/configuring-kentico/scheduling-tasks.md). The value is in hours. Attachments older than the entered value will be deleted when the scheduled task is executed.<br>`  <add key="CMSDeleteTemporaryAttachmentsOlderThan" value="12"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | 24                              |
| CMSDisableAdministrationInterface       | Allows you to disable the Kentico administration interface. The system displays an _Access denied_ screen on each attempt to access the administration interface (\~/Admin).<br>`  <add key="CMSDisableAdministrationInterface" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | false                           |
| CMSMaxNodeAliasLength                   | **Warning**: We do NOT RECOMMEND using this web.config key. Scenarios with a non-default value are not tested or supported.<br>Determines the maximum allowed length of [page aliases](https://docs.kentico.com/k9/configuring-kentico/configuring-page-urls/setting-page-aliases.md). The default value is _50_ characters and larger names are trimmed. You can increase the allowed length if you need to enter very long aliases (URLs).<br>If you use the key, you also need to manually update your Kentico database:<br>Increase the size of the **NodeAlias** column in the _CMS\_Tree_ database table.<br>Change the size restriction in the _CMS.Tree_ class definition in the **ClassXmlSchema** column of the _CMS\_Class_ table.<br>`  <xs:element name="NodeAlias" minOccurs="0">
    ...         <xs:restriction base="xs:string">             <xs:maxLength value="50" />         </xs:restriction>
    ... </xs:element>
 `<br>Update any dependent objects. (E.g., _View\_CMS\_Tree\_Joined_.)<br>**Note**: The maximum allowed length for the **Node alias path** is 450 characters, so the system may trim the alias path for pages deep in the content tree regardless of the allowed length.<br>`  <add key="CMSMaxNodeAliasLength" value="120" />
 `                                                                                                                                                                                            | 50                              |
| CMSMaxNodeNameLength                    | **Warning**: We do NOT RECOMMEND using this web.config key. Scenarios with a non-default value are not tested or supported.<br>Sets the maximum possible length for the names of pages in the content tree. The default value is _100_ characters and larger names are trimmed. This key can be used to increase the allowed length, which can be useful if you wish to enter very long page names.<br>If you use the key, you also need to manually update your Kentico database:<br>Increase the size of the following database fields:<br>**NodeName** column in the _CMS\_Tree_ table<br>**DocumentName** column in the _CMS\_Document_ table<br>**DocumentName** column in the _CMS\_EventLog_ table<br>**PageTemplateDisplayName** column in the _CMS\_PageTemplate_ table<br>**VersionDocumentName** column in the _CMS\_VersionHistory_ table<br>Change the size restriction of every column from the list above in its respective class (_CMS.Tree_, _CMS.Document_...) definition in the **ClassXmlSchema** column of the _CMS\_Class_ table.<br>`  <xs:element name="Name_of_the_field" minOccurs="0">
    ...         <xs:restriction base="xs:string">             <xs:maxLength value="100" />         </xs:restriction>
    ... </xs:element>
 `<br>Update any dependent objects. (E.g., _View\_CMS\_Tree\_Joined_ and _IX\_CMS\_PageTemplate\_PageTemplateCodeName\_PageTemplateDisplayName_.)<br>`  <add key="CMSMaxNodeNameLength" value="150" />
 ` | 100                             |
| CMSWebAnalyticsSlidingIPExpiration      | This key is used when the _Settings -> On-line marketing -> Web Analytics -> Remember visitors by IP (minutes)_ key has a value higher than 0.<br>If _enabled_, users who are active on the site but have disabled cookies are not logged as new visitors after the set time. If _disabled_, even an active user with disabled cookies is logged as a new site visitor after the set time.<br>`  <add key="CMSWebAnalyticsSlidingIPExpiration" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | enabled                         |
| CMSAuthenticationType                   | This key overrides the values returned by the _IsFormsAuthentication_ and _IsWindowsAuhentication_ methods in _CMS.Helpers.RequestHelper_.<br>You will typically use this if you are using a custom authentication provider whose authentication type is a non-standard one (e.g. Federated authentication) to make Kentico handle it as if it was windows or forms authentication.<br>The following values are available:<br>**default**: standard behavior<br>**forms**: _IsFormsAuthentication_ always returns _true_, _IsWindowsAuthentication_ always returns _false_<br>**windows**: _IsFormsAuthentication_ always returns _false_, _IsWindowsAuthentication_ always returns _true_<br>**both**: _IsFormsAuthentication_ always returns _true_, _IsWindowsAuthentication_ always returns _true_<br>`  <add key="CMSAuthenticationType" value="windows" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | default                         |
| CMSTemporaryFilesFolderPath             | Overrides the default _\~/App\_Data/CMSTemp_ location where various temporary files are stored by the system. As a value, you can use:<br>**physical disk path** - e.g. _c:\myfiles\mysite_<br>**virtual path** - e.g. _\~/UploadedFiles_<br>**UNC path** - e.g. _\\\server\folder_<br>`  <add key="CMSTemporaryFilesFolderPath" value="\\server\MyCustomFolder" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |                                 |
| CMSDefaultTheme                         | Sets the name of the folder within _\~\App\_Themes\\_ containing the theme that the system uses by default.<br>`  <add key="CMSDefaultTheme" value="MyTheme" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Default                         |
| CMSImagesDirectory                      | Sets a custom path to the _Images_ folder of the theme to be used by the system. It can be located in a different location than within the default theme folder.<br>The default value is _\~/App\_Themes//Images_.<br>`  <add key="CMSImagesDirectory" value="~/App_Themes/MyTheme/Images" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | \~/App\_Themes//Images          |
| CMSApplicationName                      | Used by Kentico Windows services to identify the Kentico instance. In case of IIS installations, the path to the instance in IIS is used as its value. In case of Visual Studio web server installation, the name of the target web project root folder is used. The value must be less than 60 characters long.<br>It is also used to register Health monitoring performance counters and to identify respective counter categories when writing monitored values to them.<br>`  <add key="CMSApplicationName" value="Default Web Site/CMS" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                                 |
| CMSApplicationGuid                      | Unique identifier of the Kentico instance. Used by Kentico Windows services to identify the Kentico instance.<br>`  <add key="CMSApplicationGuid" value="fe5493b6-4ea9-42e6-92fa-0db1156b9163" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |                                 |
| CMSMediaFileMaxVersioningSize           | Sets the maximal file size of versioned media files in kiloBytes. Files in media libraries that are larger than the entered value will not have versions created on their update.<br>`  <add key="CMSMediaFileMaxVersioningSize" value="1024" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | 2147483647 (int.MaxValue)       |
| CMSShowForgottenPassLink                | Indicates if a link that allows users to recover a forgotten password should be displayed on the logon page for the administration interface.<br>The default value is _true_.<br>`  <add key="CMSShowForgottenPassLink" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | true                            |
| CMSSelectorMaxDisplayedItems            | Sets the maximum amount of items displayed in drop‑down list selectors in the administration interface when the number of selectable objects is higher than the value of the **CMSSelectorMaxDisplayedTotalItems** key. Users can select the remaining objects in a dialog that can be opened through the _(more items...)_ option.<br>The value of this key can be overridden for individual UniSelector controls.<br>`  <add key="CMSSelectorMaxDisplayedItems" value="20" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | 25                              |
| CMSSelectorMaxDisplayedTotalItems       | Limits the maximum number of items displayed in drop‑down list selectors in the administration interface. If there are more selectable objects, the list is shortened (to the number specified by the **CMSSelectorMaxDisplayedItems** key) and the _(more items...)_ option is added.<br>The value of this key can be overridden for individual UniSelector controls.<br>`  <add key="CMSSelectorMaxDisplayedTotalItems" value="30" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | 50                              |
| CMSStorageProviderAssembly              | Indicates the assembly name of storage provider.<br>`  <add key="CMSStorageProviderAssembly" value="CMS.FileSystemStorage"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | CMS.FileSystemStorage           |
| CMSWebAnalyticsShowFullData             | Indicates whether the amount of data displayed in the analytics reports should be reduced before being rendered.<br>The default value is _false_ (for performance reasons).<br>`  <add key="CMSWebAnalyticsShowFullData" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | false                           |
| CMSPhysicalFilesCacheMinutes            | Sets the number of minutes for which clients consider physical files to be valid and up-to-date when using client caching (i.e. the length of the client cache expiration time for files). Specifically, the key determines how the server sets the **Expires** response header for file requests.<br>The key only applies to files stored on the file system that are served using the _GetResource.ashx_ handler. Other types of dynamic files use the expiration time set in **Settings -> System -> Performance -> Client cache (minutes)** within the administration interface. Physical files that are requested directly use the IIS client cache configuration.<br>See also: [Caching files and resources](https://docs.kentico.com/k9/configuring-kentico/optimizing-website-performance/configuring-caching/caching-files-and-resources.md)<br>`  <add key="CMSPhysicalFilesCacheMinutes" value="60"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | 10080                           |
| CMSHTMLEncodeEval                       | If true, the CMSAbstractTransformation class Eval methods used in ASCX transformations encode string values.<br>`  <add key="CMSHTMLEncodeEval" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | false                           |
| CMSEmailValidationRegex                 | Allows you to customize the regular expression that the system uses to validate email addresses.<br>`  <add key="CMSEmailValidationRegex" value="^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |                                 |
| CMSMacrosCaseSensitiveComparison        | If true, string comparisons in macros are case sensitive (if not overriden by _\|(casesensitive)_ [macro parameter](https://docs.kentico.com/k9/macro-expressions/macro-syntax.md)).<br>`  <add key="CMSMacrosCaseSensitiveComparison" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | false                           |
| CategoryIDLength                        | Category IDs in the CategoryIDPath column/field (the CMS\_Category table) will be padded with leading zeros to the width specified in the key, e.g. 00001232.<br>`  <add key="CategoryIDLength" value="9"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | 8                               |
| UIelementIDLength                       | UI element IDs in the ElementIDPath column/field (the CMS\_UIElement table) will be padded with leading zeros to the width specified in the key, e.g. 00001232.<br>`  <add key="UIelementIDLength" value="9"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | 8                               |
| SettingsCategoryIDLength                | Settings category IDs in the CategoryIDPath column/field (the CMS\_SettingsCategory table) will be padded with leading zeros to the width specified in the key, e.g. 00001232.<br>`  <add key="SettingsCategoryIDLength" value="9"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | 8                               |
| CMSDeleteTemporaryUploadFilesOlderThan  | Specifies how old (in hours) unfinished upload files should be deleted by the **Delete old temporary upload files** [scheduled task](https://docs.kentico.com/k9/configuring-kentico/scheduling-tasks.md).<br>`  <add key="CMSDeleteTemporaryUploadFilesOlderThan" value="12"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | 24                              |
| CMSImageEditorMaxVersionsCount          | Indicates how many versions of edited image should be saved in the image editor temporary folder.<br>`  <add key="CMSImageEditorMaxVersionsCount" value="500"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | 999                             |
| CMSImageExtensions                      | Specifies a list of file extensions which should be allowed as image files.<br>`  <add key="CMSImageExtensions" value=""/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | ""                              |
| CMSAudioExtensions                      | Specifies a list of file extensions which should be allowed as audio files.<br>`  <add key="CMSAudioExtensions" value=""/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | ""                              |
| CMSVideoExtensions                      | Specifies a list of file extensions which should be allowed as video files.<br>`  <add key="CMSVideoExtensions" value=""/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | ""                              |
| CMSUrlPort                              | Specifies the port number used in certain types of URLs (for example GetResource requests for images or modal dialog URLs). Standard navigation URLs of web pages are not affected.<br>If not set, the URL port is automatically taken from the current request (80 in most cases).<br>Add this key if you wish to generate URLs with a specific port number, regardless of the port supplied in requests.<br>The CMSUrlPort key may also be useful in scenarios where requests are redirected to a non‑standard port number, but you wish to use the usual HTTP port in URLs (for example in a [web farm environment](https://docs.kentico.com/k9/configuring-kentico/optimizing-website-performance/setting-up-web-farms.md), with a load balancer directing traffic to multiple servers identified by different port numbers).<br>`  <add key="CMSURLPort" value="80" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                                 |
| CMSSSLUrlPort                           | Specifies the port number for certain types of URLs (for example GetResource requests for images or modal dialog URLs) for requests using the SSL (HTTPS) protocol. Overrides the **CMSUrlPort** key for SSL requests.<br>Add this key if you wish to generate URLs with a specific port number, regardless of the port supplied in requests.<br>`  <add key="CMSSSLURLPort" value="443" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                                 |
| CMSUseServerSideLiveIDAuthentication    | Determines which authentication mode is used during [Microsoft account (Windows Live ID) authentication](https://docs.kentico.com/k9/managing-users/user-registration-and-authentication/windows-live-id-authentication.md). Each mode generates a different authentication token for the same Microsoft account user.<br>Only set the value to _false_ if you wish to ensure backward compatibility for users created via Live ID authentication by versions of Kentico CMS older than 6.0 (or those users created while this key is set to _false_).<br>When using the backward compatibility authentication mode, your website's domain must be set as the **Target domain** for your application in the [Microsoft account Developer Center](https://account.live.com/developers/applications/index).<br>**Note**: New users registered via Microsoft account authentication while this key is false will only work with the original authentication mode. Users created under the new mode will no longer be recognized.<br>`  <add key="CMSUseServerSideLiveIDAuthentication" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                | true                            |
| CMSDefaultCookieLevel                   | Can be used to set the default cookie level system-wide. Available cookie levels are: _None_, _System_, _Essential_, _Editor_, _Visitor_, _All_.<br>`  <add key="CMSDefaultCookieLevel" value="System" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | All                             |
| CMSSocialMediaCookieLevel               | Sets the [cookie level](https://docs.kentico.com/k9/configuring-kentico/adding-cookie-law-consent-to-web-pages/cookie-levels.md) for social media [cookies](https://docs.kentico.com/k9/configuring-kentico/adding-cookie-law-consent-to-web-pages/reference-kentico-cookies.md).<br>`  <add key="CMSSocialMediaCookieLevel" value="200" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | 1000                            |
| CMSDefaultPageClassName                 | Use the key to change the default value of the page menu item classname.<br>`  <add key="CMSDefaultPageClassName" value="CMS.MenuItem" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | CMS.MenuItem                    |
| CMSXUACompatibleValue                   | Defines a value of X-UA-Compatible header meta tag. This meta tag allows you to choose the version of Internet Explorer, in which the page should be rendered.<br>Available options are:<br>IE=5<br>IE=EmulateIE7<br>IE=7<br>IE=EmulateIE8<br>IE=8<br>IE=EmulateIE9<br>IE=9<br>IE=edge - uses the highest mode available for the particular version of Internet Explorer.<br>The meta tag is added if IE browser is used.<br>`  <add key="CMSXUACompatibleValue" value="IE=9" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | IE=edge                         |
| CMSUseXUACompatible                     | Defines if X-UA-Compatible header meta tag can be added.<br>`  <add key="CMSUseXUACompatible" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | true                            |
| CMSDisplayApplicationErrorMessages      | Defines the level of information which is displayed to the user if the application fails to initialize (e.g., the application fails to connect to the SQL server):<br>false - only general error message is displayed.<br>true - detailed information about the origin of the error is displayed.<br>`  <add key="CMSDisplayApplicationErrorMessages" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | false                           |
| CMSUpdateLastLogonForExternalUsers      | Indicates whether the system updates the last logon time when authenticating external users. For example, you can set the key to _false_ to avoid user updates on each request when using [Windows authentication](https://docs.kentico.com/k9/managing-users/user-registration-and-authentication/configuring-windows-ad-authentication.md).<br>`  <add key="CMSUpdateLastLogonForExternalUsers" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | true                            |
| CMSEnable51D                            | Indicates whether the 51Degrees.mobi device detection is enabled or disabled. Disabling the device detection frees up some of the server's memory resources.<br>`  <add key="CMSEnable51D" value="false" /> 
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | true                            |
| CMSTransactionIsolationLevel            | Sets the Isolation level used for queries that are executed as transactions. Use only in special cases if you encounter problems with deadlocks.<br>For more information about the available values, see: [IsolationLevel Enumeration](https://msdn.microsoft.com/en-us/library/system.data.isolationlevel%28v=vs.110%29.aspx)<br>`  <add key="CMSTransactionIsolationLevel" value="ReadUncommitted" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | ReadCommitted                   |
| CMSUseAbsoluteCSSClientURLs             | If set to _true,_ the system converts URLs inside [CSS stylesheets](https://docs.kentico.com/k9/developing-websites/designing-websites-using-css.md) from relative to absolute (including the protocol and site domain) when serving the actual CSS code to browsers. For example, _background:url(/media/images/pic.png)_ becomes _background:url(http://www.domain.com/media/images/pic.png)_.<br>Only enable the key if you need to ensure backward compatiblity for stylesheets from previous Kentico versions that rely on the absolute URL conversion.<br>`  <add key="CMSUseAbsoluteCSSClientURLs" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | false                           |
| CMSForceAttachmentHistoryInDatabase     | Allows you to overwrite the _Settings -> System -> Files -> Store files in_  setting for page attachment history and store the data in the database instead of the file system.<br>`  <add key="CMSForceAttachmentHistoryInDatabase" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | false                           |
| CMSPortalTemplatePage                   | Indicates which page is used as a base template for portal engine pages. Use this key with caution as improper use may lead to non-functional website. Creating a modified template page and using this key is the preferred way of customizing the template. Directly modifying the   _\~/CMSPages/PortalTemplate.aspx_ file is strongly not recommended.<br>`  <add key="CMSPortalTemplatePage" value="~/CMSPages/CustomPortalTemplate.aspx">
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | \~/CMSPages/PortalTemplate.aspx |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Active Directory settings

You can use the following keys to configure the import of users and roles when using [Windows Active Directory authentication](https://docs.kentico.com/k9/managing-users/user-registration-and-authentication/configuring-windows-ad-authentication.md):

| Key                     | Description                                                                                                                                                                                                                                                                                                                                                                                                                         | Default        |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
| CMSImportWindowsRoles   | When Windows authentication is used and this key set to true, the domain groups of users in Active Directory are imported into the system as roles.<br>`  <add key="CMSImportWindowsRoles" value="false"/>
 `                                                                                                                                                                                                                       | true           |
| CMSRoleImportFormat     | When the mixed mode authentication is used, this key determines the format of role names which are imported from Active Directory:<br>**SAM** - the format of imported roles is _rolename_.<br>**DomainSAM** - the format of imported roles is  _domain-rolename_.<br>`  <add key="CMSRoleImportFormat" value="DomainSAM"/>
 `                                                                                                      | DomainSAM      |
| CMSADDefaultMapUserName | When the mixed mode authentication is used, this key determines the format of user names which are used to communicate with the Active Directory provider:<br>**sAMAccountName** - uses the  Active Directory user name (without the domain).<br>**userPrincipalName** - uses the Active Directory user principal name (e.g. _MyName@office.example.com_).<br>`  <add key="CMSADDefaultMapUserName" value="userPrincipalName" />
 ` | sAMAccountName |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Assembly settings

You can use the following keys to assign custom assemblies to be used instead of specific providers:

| Key                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Default                 |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
| CMSSearchProviderAssembly          | Name of the assembly that is used for full-text search based on the SQL engine.<br>`  <add key="CMSSearchProviderAssembly" value="CMS.SearchProviderSQL" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                  | CMS.SearchProviderSQL   |
| CMSDataProviderAssembly            | Specifies a custom data provider assembly used as the database connector. See [Custom Data provider example](https://docs.kentico.com/k9/custom-development/customizing-providers/custom-data-provider-example.md).<br>`  <add key="CMSDataProviderAssembly" value="CMS.CustomDataProvider"/>
 `                                                                                                                                                                                                                                                                                                                | CMS.DataProviderSQL     |
| CMSVirtualPathProviderAssembly     | Specifies the assembly that implements a custom [Virtual path provider](http://msdn.microsoft.com/en-us/library/bhesyfec.aspx).<br>The system uses the virtual path provider to load virtual objects, such as ASCX [transformations](https://docs.kentico.com/k9/developing-websites/loading-and-displaying-data-on-websites/writing-transformations.md) and [page layouts](https://docs.kentico.com/k9/developing-websites/developing-websites-using-the-portal-engine/editing-page-layouts.md), from the database.<br>`  <add key="CMSVirtualPathProviderAssembly" value="CMS.CustomVirtualPathProvider"/>
 ` | CMS.VirtualPathProvider |
| CMSCustomEcommerceProviderAssembly | Specifies the custom e-commerce provider assembly.<br>`  <add key="CMSCustomEcommerceProviderAssembly" value="CMS.CustomECommerceProvider"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | CMS.EcommerceProvider   |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Settings for forbidden characters in user and role names

You can use the following keys to configure forbidden characters in user and role names:

| Key                                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                     | Default |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| CMSEnsureSafeUserNames                    | Indicates if forbidden characters in user names imported from AD should be replaced. If turned off by setting the value to _false_, you may experience problems when editing users imported with forbidden characters. Therefore, it is NOT RECOMMENDED to set the key to false.<br>`  <add key="CMSEnsureSafeUserNames" value="false" />
 `                                                                                    | true    |
| CMSEnsureSafeRoleNames                    | Indicates if forbidden characters in role names imported from AD should be replaced. If turned off by setting the value to _false_, you may experience problems when editing roles imported with forbidden characters. Therefore, it is NOT RECOMMENDED to set the key to false.<br>`  <add key="CMSEnsureSafeRoleNames" value="false" />
 `                                                                                    | true    |
| CMSForbiddenUserNameCharactersReplacement | Sets the character by which forbidden characters in user names imported from AD should be replaced.<br>If not set, value from _Settings -> URLs and SEO -> Forbidden characters replacement_ is used.<br>`  <add key="CMSForbiddenUserNameCharactersReplacement" value="-" />
 `                                                                                                                                                |         |
| CMSForbiddenRoleNameCharactersReplacement | Sets the character by which forbidden characters in role names imported from AD should be replaced.<br>If not set, value from _Settings -> URLs and SEO -> Forbidden characters replacement_ is used.<br>`  <add key="CMSForbiddenRoleNameCharactersReplacement" value="-" />
 `                                                                                                                                                |         |
| CMSUserValidationRegEx                    | Sets custom regular expression used for user name validation (used when new accounts are created or when existing usernames are modified).<br>The default value is "^\[a-zA-Z0-9\_\\\\-\\\\.@]+$".<br>If the _CMSEnsureSafeUserNames_ key is set to _false_, the following regular expression is used by default: "^\[a-zA-Z0-9\_\\\\-\\\\.\\\\\\\\@]+$".<br>`  <add key="CMSUserValidationRegEx" value="([A-Za-z0-9-]+)" />
 ` |         |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Settings for forbidden character replacement in URLs

You can use the following keys to configure how forbidden URL characters should be replaced:

| Key                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Default |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| CMSForbiddenURLValues             | The characters entered as the value of this key are forbidden in URLs (page aliases and URL paths) and will be replaced automatically by the character specified in the **Forbidden characters replacement** setting in **Settings -> URLs and SEO**.<br>By default, the following characters are forbidden:<br>\\/:\*?"\|&%.'#\[]+=„“ and the space character.<br>If you add this key to the web.config, its value will override the default forbidden character set. This way, you can either allow some of the forbidden characters or add new ones.<br>Please note that it is recommended to keep the default characters forbidden, since they may prevent certain types of URLs from working correctly if entered into URL paths.<br>Also keep in mind that some characters need to be escaped in the web.config according to standard XML rules, e.g. enter _<_ instead of the _<_ character.<br>`  <add key="CMSForbiddenURLValues" value="\/:$?&quot;&lt;&gt;\|&amp;%.&apos;#[] =" />
 ` |         |
| CMSLimitUrlReplacements           | While enabled, consecutive forbidden characters in URLs will be replaced by only a single replacement character and forbidden URL characters located at the beginning or end of the path will be removed completely instead of being replaced. If set to _false_, each forbidden character is replaced individually.<br>`  <add key="CMSLimitUrlReplacements" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | true    |
| CMSUseLimitReplacementsForUrlPath | Indicates if the functionality enabled by the **CMSLimitUrlReplacements** key should be applied to the **Page URL Path** property.<br>`  <add key="CMSUseLimitReplacementsForUrlPath" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | true    |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Content staging settings

You can use the following keys to configure the behavior of [Content staging](https://docs.kentico.com/k9/deploying-websites/content-staging.md):

| Key                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Default                   |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------- |
| CMSStagingAcceptAllCertificates                | If set to _true,_ the system accepts all certificates when performing content staging tasks over a secured protocol (SSL). Includes self-signed certificates. If _false,_ the system only accepts certificates generated by a trusted certification authority.<br>`  <add key="CMSStagingAcceptAllCertificates" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | false                     |
| CMSMediaFileMaxStagingSize                     | Sets the maximal file size of synchronized media files in kiloBytes. Files in media libraries that are larger than the entered value will not be synchronized using content staging.<br>`  <add key="CMSMediaFileMaxStagingSize" value="1024" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | 2147483647 (int.MaxValue) |
| CMSStagingTreatServerNamesAsInstances          | On Kentico instances that contain multiple sites and use staging, changes made to global objects produce staging tasks for all staging servers across all sites. If you synchronize such tasks at different times on different sites, you risk overwriting newer data with the data of old synchronization tasks (we recommend synchronizing such changes at the same time on all servers and sites).<br>If you have full control over all sites on your instance, you can define the same set of target servers for each site (each server must have an identical _Code name_ across all sites), and set the _CMSStagingTreatServerNamesAsInstances_ key to _true_. When a global staging task is synchronized, the system then automatically deletes the task from servers with matching code names on the other sites.<br>The default value is _false_ because code name collisions may occur for staging servers on unrelated sites.<br>`  <add key="CMSStagingTreatServerNamesAsInstances" value="true" />
 ` | false                     |
| CMSStagingServerName                           | Name of the staging server used for advanced bi-directional content staging. The value needs to be used as the code name when defining this server as a target server of other servers.<br>See [Bi-directional content staging](https://docs.kentico.com/k9/deploying-websites/content-staging/bi-directional-content-staging.md) for more information.<br>`  <add key="CMSStagingServerName" value="server2" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | "" (empty string)         |
| CMSStagingServiceTimeout                       | Sets timeout interval for the service used to synchronize staging tasks. The key must be configured within the web.config file on the source instance from which the tasks are being synchronized.<br>Enter the value in seconds.<br>`  <add key="CMSStagingServiceTimeout" value="240" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | 180                       |
| CMSStagingLogSynchronization                   | Indicates if performed staging synchronization tasks should be logged as new staging tasks (that can be subsequently transferred to other staging servers). The primary use of this key is to disable logging of these tasks globally for all sites in the system.<br>`  <add key="CMSStagingLogSynchronization" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | true                      |
| CMSSynchronizeSharedTemplatesWithDocuments     | Indicates if changes made to page templates used by multiple pages should be synchronized together with page update synchronization tasks of all pages using the template. If disabled, page update tasks will not include page template synchronization tasks.<br>`  <add key="CMSSynchronizeSharedTemplatesWithDocuments" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | true                      |
| CMSStagingUseTreeCustomHandlers                | If true, events from the [DocumentEvents](https://docs.kentico.com/k9/custom-development/handling-global-events/reference-global-system-events.md#documentevents) class are raised when processing page staging tasks.<br>`   <add key="CMSStagingUseTreeCustomHandlers" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | false                     |
| CMSStagingLogGlobalObjectsOnlyForAssignedSites | If true, tasks for global objects are logged only for the sites to which the respective objects are assigned.<br>`  <add key="CMSStagingLogGlobalObjectsOnlyForAssignedSites" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | false                     |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## WYSIWYG editor settings

You can use the following keys to configure the WYSIWYG editor:

| Key                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Default  |
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| CKEditor:DefaultToolbarSet            | Allows you to set the default toolbar when you use the 'default' option for [toolbar sets](https://docs.kentico.com/k9/managing-website-content/configuring-the-environment-for-content-editors/configuring-the-editor/personalizing-the-editor-toolbars-and-buttons.md) on a page. You can specify one of the following values:<br>Full<br>Standard<br>Basic<br>You can make custom toolbar sets 'default' the same way. Note that the values are case sensitive.<br>`  <add key="CKEditor:DefaultToolbarSet" value="Full" />
 ` | Standard |
| CMSWYSIWYGFixXHTML                    | Indicates if the WYSIWYG editor should automatically try to fix XHTML incompatibilities in the code it generates.<br>Supported values are _true_ and _false_.<br>`  <add key="CMSWYSIWYGFixXHTML" value="true" />
 `                                                                                                                                                                                                                                                                                                              | true     |
| CKEditor:BasePath                     | Specifies the location of the WYSIWYG editor (CKEditor).<br>By default, it is located in _\~/CMSAdminControls/CKeditor_.<br>`  <add key="CKEditor:BasePath" value="/CKeditor/" />
 `                                                                                                                                                                                                                                                                                                                                              |          |
| CKEditor:PersonalizeToolbarOnLiveSite | Indicates if the CK toolbar can be personalized on the live site.<br>Supported values are _true_ and _false_.<br>`  <add key="CKEditor:PersonalizeToolbarOnLiveSite" value="true" />
 `                                                                                                                                                                                                                                                                                                                                           | false    |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Code editor settings

You can use the following keys to configure the [Code editor](https://docs.kentico.com/k9/configuring-kentico/configuring-the-code-editor.md), which is used in the interface to ensure syntax highlighting and work with code fields:

| Key                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Default |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| CMSEnableSyntaxHighlighting  | Globally enables or disables the advanced editor and syntax highlighting support for all code fields. This can be used to turn off the editor if it is causing performance issues or other problems.<br>`  <add key="CMSEnableSyntaxHighlighting" value="false" />
 `                                                                                                                                                                                                                            | true    |
| CMSEnableSyntaxHighlighting. | Can be used to disable the advanced editor and syntax highlighting support for fields that display code in a specific language.<br>Replace the __ string with the name of the language that you wish to disable. The following language options are available: **Text**, **HTML**, **CSS**, **JavaScript**, **XML**, **CSharp**, **SQL**, **HTMLMixed**, **ASPNET**, **CMSSharp**.<br>All languages are enabled by default.<br>`  <add key="CMSEnableSyntaxHighlighting.CSS" value="false" />
 ` |         |
| CMSShowLineNumbers           | Determines whether the code editor in the administration interface displays the panel containing line numbers by default.<br>**Note**: The editor fields used in the Kentico administration interface always have line numbers disabled by default. The key only affects custom fields that have displaying of line numbers enabled (fields using the _Macro editor_ form control with the _Show line numbers_ parameter enabled).<br>`  <add key="CMSShowLineNumbers" value="false" />
 `       | true    |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## E-commerce settings

You can use the following keys to configure the Kentico E-commerce Solution:

| Key                           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Default |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| CMSEnableOrderItemEditing     | If true, you can modify order item parameters (such as order item name, price or ordered quantity) when editing an existing order that has not been paid yet.<br>![Editing order item properties](https://docs.kentico.com/docsassets/k9/reference-web-config-application-keys/editing_order_item_properties.png "Editing order item properties")<br>`  <add key="CMSEnableOrderItemEditing" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | false   |
| CMSUseMetaFileForProductImage | Indicates if meta files should be used for product images.<br>If set to **true**, the system asks the  [user](https://docs.kentico.com/k9/managing-users/user-management.md), while creating or editing a  [product](https://docs.kentico.com/k9/e-commerce-features/managing-your-store/products.md)  (or a  [product option](https://docs.kentico.com/k9/e-commerce-features/managing-your-store/products/working-with-product-options.md) ), to select a product image from the file system on their computer. The system then uploads the product image to a server, and saves it as a product metafile (a product image page of the **cms.file**type is not created). The path to this metafile is saved as the product image path (_SKUImagePath_).<br>If set to **false**, the system asks the user to select a page of the **cms.file**type as a product image. The path to the selected page is saved as the product image path (_SKUImagePath_).<br>`  <add key="CMSUseMetaFileForProductImage" value="true"/>
 ` | true    |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Email settings

You can use the following keys to configure the sending of emails:

| Key                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Default                       |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| CMSEmailTransferEncoding | Specifies the type of transfer encoding used for emails sent from Kentico.<br>Supported values are: _base64, quotedprintable_, _sevenbit_<br>`  <add key="CMSEmailTransferEncoding" value="QuotedPrintable" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                             | base64                        |
| CMSEmailSendLimit        | Sets the maximum number of messages sent to individual SMTP servers in a single connection. When the limit is reached, the connection is automatically closed and a new one opens. The process continues until all messages are sent.<br>You can lower the value if you encounter SMTP errors with too many messages set per connection.<br>`  <add key="CMSEmailSendLimit" value="20" />
 `                                                                                                                                                                                                                                                                                  | 50                            |
| CMSLogEmails             | Enables logging of all sent emails to the **\~/App\_Data/logemails.log** file. The log contains each email's recipient and subject.<br>`  <add key="CMSLogEmails" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Depends on debugging settings |
|  CMSDebugEmails          | Disables sending of emails to the actual recipients. The system only logs emails into the [event log](https://docs.kentico.com/k9/developing-websites/troubleshooting-websites/working-with-the-system-event-log.md). Helpful if you need to test the functionality, but do not want the emails to actually reach the recipients.<br>To view the event log, open the **Event log** application.<br>The emails are logged as **Information** type events.<br>The **Event code** column contains the recipient's address.<br>The system randomly generates _Sending failed for&#x20;_&#x20;errors to simulate sending errors.<br>`  <add key="CMSDebugEmails" value="true"/>
 ` | false                         |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Email campaign link tracking settings

You can use the following keys when you need to achieve specific behavior of the link tracking in email campaigns:

| Key                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                | Default |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| CMSLinkTrackerKeepUrlCase | **\[Requires hotfix [9.0.35](http://devnet.kentico.com/download/hotfixes) or newer]**<br>Indicates whether the links tracked in email campaigns should have the case-sensitive URL paths.<br>The default value is  _false_ , which means that the tracked links use lowercase URL paths.  If set to  _true_ , the tracked links use case-sensitive URL paths.<br>`  <add key="CMSLinkTrackerKeepUrlCase" value="true"/>
 ` | false   |

## Event log settings

You can use the following keys when you need to achieve specific behavior of the [Event log](https://docs.kentico.com/k9/developing-websites/troubleshooting-websites/working-with-the-system-event-log.md):

| Key                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Default                            |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| CMSLogEvents                | Indicates if logging of events in the Event log is enabled.<br>`  <add key="CMSLogEvents" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                         | true                               |
| CMSLogKeepPercent           | Coefficient for Event log deletion. Keeps the specified percentage of extra log items in the log with regards to the **Settings -> System -> Event log size** setting. The specified percentage of the oldest events is deleted by batch when the percentage is exceeded. If 0, the exact number of records is kept in the log.<br>`  <add key="CMSLogKeepPercent" value="10"/>
 `                                                                                  | 10                                 |
| CMSLogEventsToFile          | If true, events are also logged into the _\~\App\_Data\logevents.log_ file.<br>`  <add key="CMSLogEventsToFile" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                   | false                              |
| CMSLogFieldChanges          | If true and the **Settings -> System -> Log metadata changes** option is enabled, details about particular object changes are included in the respective log records.<br>`  <add key="CMSLogFieldChanges" value="true"/>
 `                                                                                                                                                                                                                                         | false                              |
| CMSLogDocumentFieldChanges  | If true and the **Settings -> System -> Log metadata changes** option is enabled, details about changes of values in page fields are included in the respective log records.<br>`  <add key="CMSLogDocumentFieldChanges" value="true"/>
 `                                                                                                                                                                                                                          | false                              |
| CMSLogNewsletterIssueEvents | Indicates if the system logs [campaign email](https://docs.kentico.com/k9/on-line-marketing-features/email-marketing/working-with-email-campaigns.md) changes into the event log (including logging of all sent issues).<br>You can disable logging of these events if you encounter problems with performance or a cluttered event log when mailing issues to a very large number of subscribers.<br>`  <add key="CMSLogNewsletterIssueEvents" value="false" />
 ` | true                               |
| CMSLogMATransitions         | Indicates if the system logs all step transitions in Marketing automation processes into the event log.<br>You can disable logging of these events if you encounter performance issues or a cluttered event log when running automation processes for a very large number of contacts.<br>`  <add key="CMSLogMATransitions" value="false" />
 `                                                                                                                     | true                               |
| CMSDataExportTemplateFolder | Indicates the starting path for template lookup.<br>`  <add key="CMSDataExportTemplateFolder" value="~/App_Data/CMSModules/DataExport"/>
 `                                                                                                                                                                                                                                                                                                                         | \~/App\_Data/CMSModules/DataExport |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Export/import settings

You can use the following keys when you want to configure file exporting:

| Key                      | Description                                                                                                                                                                                                                                                                                                                                                          |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CMSExportExcludedFolders | Specifies which folders are filtered from the Files folder of the export package.<br>**.svn** folders are excluded by default, even without this key added.<br>`  <add key="CMSExportExcludedFolders" value="test*;cms*" />
 `                                                                                                                                       |
| CMSExportExcludedFiles   | Specifies which files are filtered from the Files folder of the export package.<br>**.scc** files are excluded by default, even without this key added.<br>`  <add key="CMSExportExcludedFiles" value="test*;cms*" />
 `                                                                                                                                             |
| CMSSiteUtilsFolderPath   | Overrides the default _\~/CMSSiteUtils/_ location where the system stores export and import packages by default. As a value, you can use:<br>**physical disk path** - e.g. _c:\myfiles\mysite_<br>**virtual path** - e.g. _\~/UploadedFiles_<br>**UNC path** - e.g. _\\\server\folder_<br>`  <add key="CMSSiteUtilsFolderPath" value="\\server\MyCustomFolder" />
 ` |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Item listing settings

You can use the following keys to configure item listing in the Kentico administration interface:

> **Note:** **Note**: The web.config keys listed below only define default global settings, and individual listing components (UniGrid controls) can override the values. As a result, the values that you configure may not affect all parts of the administration interface.

| Key                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Default        |
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
| CMSDefaultListingFilterLimit    | Determines the minimum number of items that must be included in a listing in order for a filter to be shown. If the number of listed items is lower than this value, the filter is not displayed. If it is larger, the filter is displayed. This applies to all listings (UniGrid controls) across the entire UI.<br>`  <add key="CMSDefaultListingFilterLimit" value="40" />
 `                                                                                                 | 25             |
| CMSDefaultPageSizeOptions       | Sets the options available in the page size selector for listings in the Kentico interface (the _Items per page_ setting). Values must be separated by commas.<br>You can use the _##ALL##_ value to add an option that lists all available rows on a single page (not recommended if you have objects with a very large number of records).<br>`  <add key="CMSDefaultPageSizeOptions" value="10,50,200" />
 `                                                                  | 5,10,25,50,100 |
| CMSDefaultListingPageSize       | Sets the initial page size of listings in the Kentico interface (the _Items per page_ setting). If the value is not included among the options defined by the **CMSDefaultPageSizeOptions** key, the system automatically inserts the value as an additional option.<br>`  <add key="CMSDefaultListingPageSize" value="50" />
 `                                                                                                                                                 | 25             |
| CMSListingShowFirstLastButtons  | If enabled, the first and last page link buttons will be included in the pagers of listings in the UI with a large enough number of items. If disabled, the buttons will always be hidden.<br>If both this and the _ShowDirectPageControl_ keys are disabled, only _TopN_ items are loaded, while _TopN = PageSize \* (currentPageIndex + CurrentPagesGroupSize)_.<br>`  <add key="CMSListingShowFirstLastButtons" value="false" />
 `                                           | true           |
| CMSListingShowDirectPageControl | If enabled, a textbox that allows the current page to be changed by directly entering a number will be included in pagers of listings in the UI with a large enough number of items. If disabled, the control will always be hidden.<br>If both this and the _ShowFirstLastButtons_ keys are disabled, only _TopN_ items are loaded, while _TopN = PageSize \* (currentPageIndex + CurrentPagesGroupSize)_.<br>`  <add key="CMSListingShowDirectPageControl" value="false" />
 ` | true           |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## URL settings for cultures

You can use the following keys to set up URL behavior for the culture (language) versions of pages:

| Key                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Default |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| CMSUseCultureForBestPageInfoResult | Indicates whether the currently selected culture should have the highest priority when deciding which language version of a page should be displayed.<br>The default value is _false_, which means that accessing a page through the custom URL set for one of its specific culture versions will override and change the preferred culture accordingly.<br>If set to _true_, the currently selected culture will be reflected even when a culture‑specific page URL path is used.<br>`  <add key="CMSUseCultureForBestPageInfoResult" value="true" />
 ` | false   |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Query string parameter name settings

You can use the following keys to change certain query string parameter names:

| Key                       | Description                                                                                                                                                                                                                                         | Default   |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| CMSLanguageParameterName  | Changes the name of the query string parameter used to set the culture. For example, this allows you to get _Home?sprache=de-de_ instead of the default _Home?lang=de-de_.<br>`  <add key="CMSLanguageParameterName" value="sprache" />
 `          | lang      |
| CMSAliasPathParameterName | Changes the name of the _aliaspath_ query string parameter so that you get _products.aspx?ap=/products/myproduct_ instead of the default _products.aspx?aliaspath=/products/myproduct_.<br>`  <add key="CMSAliasPathParameterName" value="ap" />
 ` | aliaspath |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Scheduler settings

By adding the following keys to your web.config, you can configure the [scheduler](https://docs.kentico.com/k9/configuring-kentico/scheduling-tasks.md):

| Key                               | Description                                                                                                                                                                                                                                                                                                                                                                                                | Default                    |
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| CMSUseAutomaticScheduler          | Indicates if automatic scheduling should be used. When enabled, the scheduler periodically requests the **cmspages/scheduler.aspx** page which ensures that scheduled tasks are processed regularly, even if there is no website activity.<br>If turned off (_false_ - by default), tasks are processed at the end of standard page requests.<br>`  <add key="CMSUseAutomaticScheduler" value="true" />
 ` | false                      |
| CMSRunSchedulerWithinRequest      | If _true_ (the default value), the scheduler is executed within the standard **EndRequest** event of a page. If _false_, the scheduler is executed via the _\~/cmspages/scheduler.aspx_ page.<br>`  <add key="CMSRunSchedulerWithinRequest" value="false" />
 `                                                                                                                                            | true                       |
| CMSSchedulerURL                   | URL of the physical location of the scheduler.aspx page.<br>`  <add key="CMSSchedulerURL" value="https://domain/cmspages/scheduler.aspx" />
 `                                                                                                                                                                                                                                                             | \~/cmspages/scheduler.aspx |
| CMSSchedulerAcceptAllCertificates | If true, all security certificates (including not valid ones) will be accepted when accessing the _scheduler.aspx_ page via a secured protocol.<br>`  <add key="CMSSchedulerAcceptAllCertificates" value="true" />
 `                                                                                                                                                                                      | false                      |
| CMSSchedulerUserName              | Sets the user name under which the _scheduler.aspx_ page should be accessed (e.g. when using windows authentication).<br>`  <add key="CMSSchedulerUserName" value="office\myname" />
 `                                                                                                                                                                                                                    | "" (blank username)        |
| CMSSchedulerPassword              | Sets the password for the user name under which the _scheduler.aspx_ page should be accessed.<br>`  <add key="CMSSchedulerPassword" value="mypassword123" />
 `                                                                                                                                                                                                                                            | "" (blank password)        |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Contact management settings

By adding the following keys to your web.config, you can configure the behavior of [contact management](https://docs.kentico.com/k9/on-line-marketing-features/contact-management.md).

| Key                              | Description                                                                                                                                                                                                                                           | Default |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| CMSProcessContactActionsInterval | Sets the interval (in seconds) in which contact activities are batch processed by the system. Consider raising the interval if your system processes a large number of activities.<br>`  <add key="CMSProcessContactActionsInterval" value="30" />
 ` | 10      |
| CMSEnableContactBots             | Determines whether web bots (e.g. search engine crawlers) should be logged and tracked as contacts when they access the website.<br>`  <add key="CMSEnableContactBots" value="true" />
 `                                                             | false   |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Security settings

By adding the following keys to your web.config, you can configure security options:

| Key                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Default  |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| CMSAcceptAllCertificates    | Indicates whether application requests accept all certificates (including invalid certificates). This key ensures the same as if the following keys were enabled at the same time:<br>_CMSSearchCrawlerAcceptAllCertificates_<br>_CMSSchedulerAcceptAllCertificates_<br>_CMSStagingAcceptAllCertificates_<br>`  <add key="CMSAcceptAllCertificates" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | false    |
| CMSAdminEmergencyReset      | Allows you to recover access to the administration interface if you forget the password of your administrator account. The value must consist of the following parts, separated by semicolons:<br>Username of the account<br>New password for the account<br>Optional true/false value, specifies whether you want to create a new user with the Global administrator [privilege level](https://docs.kentico.com/k9/managing-users/user-management.md).<br>The system automatically deletes the key after you gain access to the administration interface.<br>See also: [Forgotten password](https://docs.kentico.com/k9/securing-websites/designing-secure-websites/securing-user-accounts-and-passwords/forgotten-password.md)<br>`  <add key="CMSAdminEmergencyReset" value="admin;password;true" />
 `                                           |          |
| CMSAllowOnlySimpleMacros    | If true, only simple macros (i.e. those which do not need a security check) are allowed. All others will not be resolved. If true, CMSTextBox control does not add security signatures to macros.<br>`  <add key="CMSAllowOnlySimpleMacros" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | false    |
| CMSCheckParameters          | Indicates if parameter checking is allowed.<br>`  <add key="CMSCheckParameters" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | false    |
| CMSReportCheckParameters    | If true, an exception reporting the parameters is thrown when the parameters do not match.<br>`  <add key="CMSReportCheckParameters" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | false    |
| CMSEnableCsrfProtection     | Indicates whether the system uses security tokens to protect pages against [Cross site request forgery](https://docs.kentico.com/k9/securing-websites/developing-secure-websites/cross-site-request-forgery-csrf-xsrf.md) attacks. Only set this key to _false_ if you have your own security mechanism against CSRF.<br>`  <add key="CMSEnableCsrfProtection" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | true     |
| CMSEnableWIF                | Overwrites the setting of the **Enable WIF authentication** option in **Settings ->   Security & Membership   -> Authentication -> Claims-based authentication**.<br>If included in the web.config file and set to false, this key can **override enabled WIF authentication** in case you have not established an administrator account (as described in [Claims-based authentication](https://docs.kentico.com/k9/managing-users/user-registration-and-authentication/claims-based-authentication.md)) and you do not have access to the administration interface.<br>`  <add key="CMSEnableWIF" value="false"/>
 `                                                                                                                                                                                                                                |          |
| CMSPasswordSalt             | The password salt is a string that is appended to user passwords before they are hashed (to improve security). By default, the salt always contains the randomly generated GUID of the given user (you can change the base salt value via the **CMSUserSaltColumn** web.config key). The content of this key is added after the base salt value to further increase the length of the salt.<br>Only applies if the application stores passwords using the _SHA2 with salt_ format, which you can configure in **Settings -> Membership & Security -> Passwords -> Password format**.<br>See also: [Setting the user password format](https://docs.kentico.com/k9/securing-websites/designing-secure-websites/securing-user-accounts-and-passwords/setting-the-user-password-format.md)<br>`  <add key="CMSPasswordSalt" value="SaltText" />
 `       |          |
| CMSUserSaltColumn           | **\[Requires [hotfix 9.0.5](http://devnet.kentico.com/download/hotfixes) or newer]**<br>The password salt is a string that the system appends to user passwords before they are hashed (to improve security). This key identifies the user field whose value is used as the base of the salt. By default, the _UserGuid_ field is used, which contains a randomly generated GUID for each user.<br>Only applies if the application stores passwords using the _SHA2 with salt_ format, which you can configure in **Settings -> Membership & Security -> Passwords -> Password format**.<br>See also: [Setting the user password format](https://docs.kentico.com/k9/securing-websites/designing-secure-websites/securing-user-accounts-and-passwords/setting-the-user-password-format.md)<br>`  <add key="CMSUserSaltColumn" value="UserName" />
 ` | UserGuid |
| CMSRenewSessionAuthChange   | When set to _true,_ the system enforces a change of the session ID when a user logs in or out. Provides protection against session fixation attacks.<br>If you enable this key, users cannot preserve their session data after logging in or out.<br>See also: [Session protection](https://docs.kentico.com/k9/securing-websites/designing-secure-websites/securing-and-protecting-the-system/session-protection.md)<br>`  <add key="CMSRenewSessionAuthChange" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                  | false    |
| CMSXFrameOptionsExcluded    | Excludes pages under the specified paths from clickjacking protection. For pages under the excluded path, the system no longer adds the  _**X-frame-options: SAMEORIGIN**_  header to the HTTP response (this header ensures that pages displayed in frames must originate on the same server as the parent page).<br>To exclude multiple paths, enter values separated by semicolons (;).<br>See also: [Clickjacking protection](https://docs.kentico.com/k9/securing-websites/designing-secure-websites/securing-and-protecting-the-system/clickjacking-protection.md)<br>`  <add key="CMSXFrameOptionsExcluded" value="/Services" />
 `                                                                                                                                                                                                           |          |
| CMSUserBasedFloodProtection | Indicates whether the flood protection mechanisms are based on user accounts.<br>`  <add key="CMSUserBasedFloodProtection" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | true     |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Smart search settings

You can use the following keys to configure the [Smart search](https://docs.kentico.com/k9/configuring-kentico/setting-up-search-on-your-website.md):

| Key                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Default       |
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
| CMSSearchIndexPath                    | Sets the path of a custom directory where the smart search physically stores the index files.<br>`  <add key="CMSSearchIndexPath" value="App_Data\MyCustomIndexes" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |               |
| CMSCrawlerAllowSiteAliasRedirect      | By default, [Page crawler](https://docs.kentico.com/k9/configuring-kentico/setting-up-search-on-your-website/creating-search-indexes/defining-page-indexes.md) search indexes read pages that use redirection from the site's main domain name to a [domain alias](https://docs.kentico.com/k9/configuring-kentico/managing-sites/setting-domain-names-for-sites.md). Setting this key to _false_ only allows indexing for pages that use the website's main domain.<br>`  <add key="CMSCrawlerAllowSiteAliasRedirect" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | true          |
| CMSCreateTemplateSearchTasks          | If enabled, any changes made to [page templates](https://docs.kentico.com/k9/developing-websites/developing-websites-using-the-portal-engine/creating-portal-engine-page-templates.md) automatically trigger an update of all pages that are based on the given template in the appropriate smart search indexes. The default value is _true_.<br>You can set this key to  _**false**_  if you wish to improve performance or save resources in scenarios where you have a very large number of pages on your website that share the same page template. This way, the system no longer performs bulk updates of pages in the search index whenever their template is modified.<br>Disabling this key means that your page index will not reflect changes to the page template (e.g. if you add static text to the template through a web part) until the given pages are updated for another reason, or the entire index is rebuilt.<br>The key only affects changes to page templates. Editing the content of editable regions on a specific page always causes an update of the search index content.<br>`  <add key="CMSCreateTemplateSearchTasks" value="false" />
 ` | true          |
| CMSProcessSearchTasksByScheduler      | By default, the smart search creates and runs indexing tasks immediately whenever content covered by a search index is created or modified.<br>If you set this key to _true_, the system does NOT run indexing tasks upon creation — they need to be processed periodically, for example using the **Execute search tasks** [scheduled task](https://docs.kentico.com/k9/configuring-kentico/scheduling-tasks.md).<br>`  <add key="CMSProcessSearchTasksByScheduler" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | false         |
| CMSSearchCrawlerAcceptAllCertificates | **\[Requires [hotfix 9.0.7](http://devnet.kentico.com/download/hotfixes) or newer]**<br>By default, the smart search crawler does not index pages on sites using a secured protocol (HTTPS) without a certificate from a trusted authority. For example, you may encounter the problem in development environments that use a self-signed certificate.<br>If you set this key to _true_, the system accepts all certificates.<br>**Note**: Setting the _CMSSearchCrawlerAcceptAllCertificates_ key to _true_ poses a security vulnerability and should not be used in production environments.<br>`  <add key="CMSSearchCrawlerAcceptAllCertificates" value="true" />

 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | false         |
| CMSSearchMaxFieldLength               | Sets the maximum number of terms that the smart search allows in a single index field.<br>`  <add key="CMSSearchMaxFieldLength" value="10000" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Unlimited     |
| CMSSearchMaxResultsNumber             | Sets the maximum number of results that the smart search can return for a single search request. If a search produces more matching results, the system ignores the items that do not fit into the limit.<br>The purpose of the limit is to avoid processing of large numbers of search results with low relevance. If you use very large search indexes that regularly produce more than _1000_ results (the default limit), you can either increase the value or set up [search filters](https://docs.kentico.com/k9/configuring-kentico/setting-up-search-on-your-website/using-search-filters.md) to help narrow down the search.<br>`  <add key="CMSSearchMaxResultsNumber" value="3000" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | 1000          |
| CMSSearchSynonymsWeight               | Sets the relevance (result score) that the search assigns to items found through the synonym search (i.e. when using **Any word or synonyms** search mode).<br>The key's value must be a decimal number ranging from 0 to 1. A larger number assigns higher relevance to synonyms. If you set 1, the score of synonyms is equal to words in the original unexpanded search expression.<br>`  <add key="CMSSearchSynonymsWeight" value="0.8" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | 0.9           |
| CMSSmartSearchLockPollInterval        | Specifies how often (time in milliseconds) the smart search indexer attempts to acquire a lock on index files.<br>The default value of this key is 500 milliseconds.<br>Set a lower value if the following exception is being logged in your Event log.<br>_Lock obtain timed out: CMS.SiteProvider.SearchLock_<br>`  <add key="CMSSmartSearchLockPollInterval" value="300" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | 500 ms        |
| CMSSmartSearchLockTimeout             | Defines the timeout period (in milliseconds) during which the smart search indexer attempts to acquire a lock on index files.<br>The default value of this key is 1000 milliseconds.<br>`  <add key="CMSSmartSearchLockTimeout" value="1500" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | 1000 ms       |
| CMSSubsetAnalyzerWordRegex            | Sets a [regular expression](http://en.wikipedia.org/wiki/Regular_expression) that determines which characters are allowed inside the "words" processed by [search indexes](https://docs.kentico.com/k9/configuring-kentico/setting-up-search-on-your-website/creating-search-indexes.md) with **Subset** and **Starts with** analyzers.<br>The analyzers use the following steps to create search tokens:<br>Divide text into words<br>Tokenize the substrings inside the words (according to the analyzer type)<br>The words created in the first step may contain only characters that match the regular expression in the key's value. Any other characters split the text into separate words.<br>By default, the following characters are allowed:<br>word characters (upper and lower case letters, numbers, underscores)<br>at symbols (@)<br>periods ( . )<br>**Note** : After changing the value of the key, you need to  **Rebuild**  your search indexes that use  _Subset_  or  _Starts with_  analyzers.<br>`  <add key="CMSSubsetAnalyzerWordRegex" value="(\w\|@\|\.\|\$)+" />
 `                                                                           | (\w\|@\|\\.)+ |
| CMSSearchStoreContentField            | Determines whether the smart search stores the original untokenized Content field within index files.<br>**Warning**: Setting the key to _true_ reduces indexing performance and increases the size of index files (the difference can be GBs of data for very large indexes). Only enable the key if you need to inspect or debug the content of your index files on development sites. Never enable the key on production sites.<br>`  <add key="CMSSearchStoreContentField" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | false         |

The following keys adjust how the smart search indexes page attachments (see [Searching attachment files](https://docs.kentico.com/k9/configuring-kentico/setting-up-search-on-your-website/searching-attachment-files.md)):

| Key                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Default       |
| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
| CMSSearchDetectTextEncoding | Indicates whether the attachment search uses automatic detection of character encoding for text files (**txt** and **csv**).<br>By default, the search can read text files that use the following encoding:<br>[UTF-8](http://en.wikipedia.org/wiki/Utf-8)<br>The default Windows encoding (the operating system's current ANSI code page)<br>If you enable automatic detection, the system attempts to detect the encoding type for each file, and use the correct option when reading the content.<br>**Note**: Correct encoding detection is not guaranteed for all files. Automatic detection also slightly increases the time required to index text files.<br>`  <add key="CMSSearchDetectTextEncoding" value="true" />
 ` | false         |
| CMSSearchIndexXmlAttributes | Determines whether the attachment search includes the values of tag attributes when indexing XML files.<br>`  <add key="CMSSearchIndexXmlAttributes" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |  false        |
| CMSSearchIndexXmlComments   | Determines whether the attachment search includes comments when indexing XML files.<br>`  <add key="CMSSearchIndexXmlComments" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |  false        |
| CMSSearchMaxAttachmentSize  | Sets the maximum allowed file size in kB for the attachment search. The search ignores page attachments whose size exceeds the value.<br>Indexing very large files can be resource intensive and have a negative impact on your website's performance.<br>`  <add key="CMSSearchMaxAttachmentSize" value="10000" />
 `                                                                                                                                                                                                                                                                                                                                                                                                           | 0 (unlimited) |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Translation service settings

You can use the following key to configure [Translation services](https://docs.kentico.com/k9/multilingual-websites/configuring-translation-services.md):

| Key                                        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Default |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| CMSTranslationServicesUseCDATAForTransUnit | Use if you want to export XLIFF files without the CDATA notation.<br>`  <add key="CMSTranslationServicesUseCDATAForTransUnit" value="false" />
 `                                                                                                                                                                                                                                                                                                                                                                       | true    |
| CMSTranslationsUseAbsoluteLinks            | Determines whether the URLs in content sent for translation are converted to absolute format. If true, the links in content sent for translation are absolute and not converted back to relative format when the translated content is imported back to the system.<br>Note that using absolute links in content sent for translation can cause issues when, for example, synchronizing the imported translation to a different domain by staging.<br>`  <add key="CMSTranslationsUseAbsoluteLinks" value="false" />
 ` | true    |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## User interface culture settings

By adding the following keys to your web.config, you can configure the cultures used in the administration interface:

| Key                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Default |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| CMSDefaultSpellCheckerCulture     | Specifies the default culture of the built-in spell-checker. This culture is used when the dictionary for the currently selected content culture is not found.<br>`  <add key="CMSDefaultSpellCheckerCulture" value="en-US" />
 `                                                                                                                                                                                                                                                                             | en-us   |
| CMSShowLogonCultureSelector       | Indicates if the user interface logon page should display a drop-down list with available user interface languages.<br>`  <add key="CMSShowLogonCultureSelector" value="false" />
 `                                                                                                                                                                                                                                                                                                                          | true    |
| CMSDefaultUICulture               | Specifies the default UI culture.<br>If you use this key, you also need to:<br>Add a corresponding resource string file (localization pack) into the _\~\CMSResources_ folder.<br>Rename the default CMS.resx file to _CMS.en-us.resx_.<br>Rename the new culture's resource string file to _CMS.resx_.<br>This is needed because the _CMS.resx_ file is used when the _(default)_ option is selected as a user's _Preferred user interface culture_.<br>`  <add key="CMSDefaultUICulture" value="en-nz"/>
 ` | en-us   |
| CMSUseSQLResourceManagerAsPrimary | Changes the priority of used localization resource strings to:<br>custom.resx<br>cms.resx<br>database (Kentico administration -> Localization application)<br>`  <add key="CMSUseSQLResourceManagerAsPrimary" value="false" />
 `                                                                                                                                                                                                                                                                             | true    |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Web analytics settings

By adding the following key to your web.config, you can configure [Web analytics](https://docs.kentico.com/k9/on-line-marketing-features/web-analytics.md).

| Key                                | Description                                                                                                                                                                                                                                                                                                                                               | Default |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| CMSWebAnalyticsRemoveReferralQuery | Indicates whether URL query strings are removed when logging _Referrals_ and _Referring sites_ in web analytics. When false, the system then no longer aggregates _Referrals_ and _Referring sites_ from the same source with different query string parameters into a single URL.<br>`  <add key="CMSWebAnalyticsRemoveReferralQuery" value="false"/>
 ` | true    |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Web farm synchronization settings

By adding the following keys to your web.config, you can enable or disable [web farm synchronization](https://docs.kentico.com/k9/configuring-kentico/optimizing-website-performance/setting-up-web-farms.md) of certain kind of files stored in the file system:

| Key                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Default                   |
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| CMSWebFarmMode                        | Indicates if [web farms](https://docs.kentico.com/k9/configuring-kentico/optimizing-website-performance/setting-up-web-farms.md) are:<br>**disabled**<br>**automatic** - no further configuration is needed.<br>**manual** - requires [manual configuration of web farm servers](https://docs.kentico.com/k9/configuring-kentico/optimizing-website-performance/setting-up-web-farms/configuring-web-farm-servers.md) in the system.<br>`  <add key="CMSWebFarmMode" value="automatic"/>
 `                                                                                                                                                                                                                                                                                                               | disabled                  |
| CMSWebFarmServerName                  | Code name of the web farm server. This value is used for manual web farm synchronization support.<br>This setting overrides the name assigned by the system in the Automatic web farm mode.<br>`  <add key="CMSWebFarmServerName" value="server1" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | "" (empty string)         |
| CMSWebFarmMaxFileSize                 | If the  **CMSWebFarmSynchronizeFiles**  key is enabled, you can limit the maximum size of synchronized files using this key. The value is entered in kiloBytes and files larger than this value will not be synchronized.<br>`  <add key="CMSWebFarmMaxFileSize" value="1024" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | 2147483647 (int.MaxValue) |
| CMSWebFarmApplicationPhysicalPath     | Path to the application on the disk used for synchronizing physical files.<br>`  <add key="CMSWebFarmApplicationPhysicalPath" value="C:\inetpub\wwwroot\Kentico" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                           |
| CMSWebFarmSyncInterval                | Average time before a created web farm synchronization task is processed by web farm servers (the maximum possible time before a task is processed is double of the specified interval).<br>`  <add key="CMSWebFarmSyncInterval" value="100" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | 2000 ms                   |
| CMSWebFarmSynchronizeFiles            | Determines if web farms synchronize files in general. This key enables synchronization of:<br>Attachments<br>Meta files<br>Media files<br>Form files<br>Avatars<br>Forum attachments<br>**Microsoft Azure notes**:<br>The key is _false_ by default for projects running in [Microsoft Azure Cloud Services](https://docs.kentico.com/k9/running-kentico-on-microsoft-azure/running-kentico-in-azure-cloud-services.md).<br>For projects hosted in [Microsoft Azure Web Apps](https://docs.kentico.com/k9/running-kentico-on-microsoft-azure/running-kentico-in-azure-web-apps.md), we strongly recommend that you manually set the key to _false_. Otherwise you may encounter file system collisions when scaling to multiple instances.<br>`  <add key="CMSWebFarmSynchronizeFiles" value="true" />
 ` | true                      |
| CMSWebFarmSynchronizeAttachments      | Enables/disables synchronization of attachments.<br>`  <add key="CMSWebFarmSynchronizeAttachments" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | true                      |
| CMSWebFarmSynchronizeMetaFiles        | Enables/disables synchronization of meta files.<br>`  <add key="CMSWebFarmSynchronizeMetaFiles" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | true                      |
| CMSWebFarmSynchronizeMediaFiles       | Enables/disables synchronization of media files.<br>`  <add key="CMSWebFarmSynchronizeMediaFiles" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | true                      |
| CMSWebFarmSynchronizeBizFormFiles     | Enables/disables synchronization of form files.<br>`  <add key="CMSWebFarmSynchronizeBizFormFiles" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | true                      |
| CMSWebFarmSynchronizeAvatars          | Enables/disables synchronization of Avatars.<br>`  <add key="CMSWebFarmSynchronizeAvatars" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | true                      |
| CMSWebFarmSynchronizeForumAttachments | Enables/disables synchronization of forum attachments.<br>`  <add key="CMSWebFarmSynchronizeForumAttachments" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | true                      |
| CMSWebFarmSynchronizeDeleteFiles      | Enables/disables synchronization of deleted files.<br>`  <add key="CMSWebFarmSynchronizeDeleteFiles" value="true" />
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | true                      |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Microsoft Azure settings

By adding the following keys to your **web.config** file, you can set up the deployment of your website to Microsoft Azure and configure its behaviour.

Note that there is an easier way of editing the definition end configuration files of your Azure project in Visual Studio by right-clicking the appropriate role in  **CMSAzure -> Roles**  and selecting  **Properties** .  For more information, refer to  [Adding application settings in an Azure project](https://docs.kentico.com/k9/running-kentico-on-microsoft-azure/running-kentico-in-azure-cloud-services/configuring-kentico-azure-projects-for-cloud-services.md#adding-application-settings-in-an-azure-project) .

| Key                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CMSAzureProject                          | Must be set to _true_ if you wish to run the application in Microsoft Azure Cloud Services.<br>_True_ by default if the application is installed as a Microsoft Azure project, _false_ in standard installations.<br>`  <add key="CMSAzureProject" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| CMSAzureAccountName                      | Specifies the name of the Azure Storage account that the application will use for its file system.<br>If you wish to run the application on the local emulator, enter _devstoreaccount1_ as the value.<br>`  <add key="CMSAzureAccountName" value="devstoreaccount1"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| CMSAzureSharedKey                        | Contains the primary access key for the storage account specified in the CMSAzureAccountName setting.<br>You can find the appropriate value for your storage account on the [Microsoft Azure Management Portal](https://manage.windowsazure.com).<br>`  <add key="CMSAzureSharedKey" value="Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="/>
 `                                                                                                                                                                                                                                                                                                                                                           |
| CMSAzureBlobEndPoint                     | Sets the endpoint used for the connection to the blob service of the specified storage account. If you wish to use the default endpoint, clear the value of this setting.<br>`  <add key="CMSAzureBlobEndPoint" value="http://127.0.0.1:10000/devstoreaccount1"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| CMSAzureQueueEndPoint                    | Sets the endpoint used for the connection to the queue service of the specified storage account. If you wish to use the default endpoint, clear the value of this setting.<br>`  <add key="CMSAzureQueueEndPoint" value="http://127.0.0.1:10001/devstoreaccount1"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| CMSAzureTableEndPoint                    | Sets the endpoint used for the connection to the table service of the specified storage account. If you wish to use the default endpoint, clear the value of this setting.<br>`  <add key="CMSAzureTableEndPoint" value="http://127.0.0.1:10002/devstoreaccount1"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| CMSAzureRootContainer                    | Specifies the name of the blob container that will serve as the root of the application's file system on the Azure storage account.<br>This can be useful in scenarios where multiple applications use the same storage account.<br>The default value is _cmsstorage_.<br>`  <add key="CMSAzureRootContainer" value="CustomRoot"/>
 `                                                                                                                                                                                                                                                                                                                                                                                                                |
| CMSAzurePublicContainer                  | Indicates if the blob container used to store the applications file system should be public. If set to _true_, it will be possible to access files directly through the URL of the appropriate blob service, for example:<br>_.blob.core.windows.net/cmsroot/corporatesite/media/imagelibrary/logo.png_<br>`  <add key="CMSAzurePublicContainer" value="true"/>
 `                                                                                                                                                                                                                                                                                                                                                                                   |
| CMSAzureStorageCacheCleanerThreshold     | Specifies a threshold in gigabytes that is used by [theClean Azure storage cachescheduled task](https://docs.kentico.com/k9/running-kentico-on-microsoft-azure/preventing-azure-cache-folders-from-bloating.md). When the threshold is exceeded and the scheduled task is enabled, the system starts to delete files in the **Azure Cache** and **Azure Temp** folders from the oldest to the newest.<br>The default value is _45GB_.<br>`  <add key="CMSAzureStorageCacheCleanerThreshold" value="45"/>
 `                                                                                                                                                                                                                                          |
| CMSAzureStorageCacheCleanerKeepLimit     | Specifies an amount in gigabytes that is used by  [theClean Azure storage cachescheduled task](https://docs.kentico.com/k9/running-kentico-on-microsoft-azure/preventing-azure-cache-folders-from-bloating.md) . The amount is the target size of the **Azure Cache** and **Azure Temp** folders when the scheduled task deletes the files.<br>The size of the excluded paths (set by  the  **CMSAzureStorageCacheCleanerExcludedPaths**  web.config key) is included in the amount.<br>The default value is _10GB_.<br>`  <add key="CMSAzureStorageCacheCleanerKeepLimit" value="10"/>
 `                                                                                                                                                           |
| CMSAzureStorageCacheCleanerExcludedPaths | Specifies relative paths separated by semicolons ( _;_ ) that are excluded when using [theClean Azure storage cachescheduled task](https://docs.kentico.com/k9/running-kentico-on-microsoft-azure/preventing-azure-cache-folders-from-bloating.md) .<br>There is not any predefined excluded path by default.<br>`  <add key="CMSAzureStorageCacheCleanerExcludedPaths" value="folder_name1;folder_name2"/>
 `                                                                                                                                                                                                                                                                                                                                       |
|   CMSAzureCDNCacheMinutes                | Allows you to set caching interval for [Azure CDN](https://docs.kentico.com/k9/running-kentico-on-microsoft-azure/configuring-azure-cdn.md). <br>Using this key, you can set different intervals for expiration of files in the server memory (which can be set in the Settings application -> System -> Performance -> Cache files (minutes) option) and for expiration of files in Azure CDN.<br>If this key is not used, the **Cache files (minutes)** setting is used for CDN expiration interval instead.<br>See also [Settings - Performance](https://docs.kentico.com/k9/configuring-kentico/managing-sites/configuring-settings-for-sites/settings-system/settings-performance.md).<br>`  <add key="CMSAzureCDNCacheMinutes" value="30"/>
 ` |

If you wish to host your website on‑premise, but use a file system based on the **Blob Storage** service of an Azure storage account, you can specify the following settings:

| Key                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CMSExternalStorageName | Configures the application to use an external storage provider for its file system. Do NOT set this key if you only wish to map specific folders to a different storage provider. See [Configuring file system providers](https://docs.kentico.com/k9/custom-development/working-with-physical-files-using-the-api/configuring-file-system-providers.md) to learn how to implement such scenarios.<br>The following key values are available for the external storage providers supported by default:<br>Azure Blob storage - **azure**<br>Amazon S3 - **amazon**<br>`  <add key="CMSExternalStorageName" value="azure" />
 ` |
| CMSAzureTempPath       | The folder specified by this key will be used to store temporary files on a local disk, e.g. when transferring large files to or from the storage account.<br>Do not use this key if the entire application is deployed as a Microsoft Azure hosted service.<br>`  <add key="CMSAzureTempPath" value="C:\AzureTemp" />
 `                                                                                                                                                                                                                                                                                                     |
| CMSAzureCachePath      | Specifies a folder on a local disk where files requested from the storage account will be cached. This helps minimize the amount of blob storage operations, which saves time and resources.<br>Do not use this key if the entire application is deployed as a Microsoft Azure hosted service.<br>`  <add key="CMSAzureCachePath" value="C:\AzureCache" />
 `                                                                                                                                                                                                                                                                 |
| CMSDownloadBlobTimeout | Specifies the timeout interval in minutes for importing files from Azure Blob storage into Kentico.<br>The default value is _1.5_ minutes. Increase the interval if you encounter problems when importing large (about 2GB) files.<br>`  <add key="CMSDownloadBlobTimeout" value="50" />
 `                                                                                                                                                                                                                                                                                                                                   |

[> Back to list of web.config key categories](#referenceweb.configapplicationkeys-keystop)

## Connection string

The database used by Kentico is specified by the connection string **CMSConnectionString** in the **/configuration/connectionStrings** section.

```html

<add name="CMSConnectionString" connectionString="Persist Security Info=False;database=CMS;server=myserver;user id=sa;password=mypassword123;Current Language=English;Connection Timeout=120;" />

```
