Questions tagged [configuration]

Questions about the ways Sitecore is configured, including .config files, patching, available settings, etc.

Filter by
Sorted by
Tagged with
64
votes
6answers
32k views

How do you setup a 404 and 500 error page for missing files and media items?

When navigating to a url such as www.website.com/missing.pdf and www.website.com/-/media/missing.pdf you will either receive the IIS 404 Server Error message or a Sitecore document not found page. ...
20
votes
3answers
4k views

How can I disable xDB?

If I don't have a working connection to MongoDB and I don't want to use xDB functionality. Currently, my logs are being filled with errors. What is the configuration needed to disable xDB?
15
votes
2answers
822 views

Server role config with ContentManagement,Processing,Reporting not working

We wanted to setup a server as ContentManagement,Processing and Reporting instance. As we can combine roles, we changed the config accordingly. <add key="role:define" value="ContentManagement,...
34
votes
6answers
6k views

What is the purpose of keepalive.aspx?

I know that this the page is called every 15 minutes (by default) by a scheduled task. <agent type="Sitecore.Tasks.UrlAgent" method="Run" interval="00:15:00"> <param desc="url">/service/...
12
votes
1answer
856 views

How or where should I add a required connection string for a feature in Helix?

A feature requires adding a new connection string. Which should be the way to do this in Helix?
11
votes
1answer
968 views

How do you best manage security domains using SXA with the Active Directory module?

SXA provides the ability to create new tenants on-the-fly. Ideally each tenant would have a unique set of roles such as tenant1\admin and tenant1\editor. How do you configure roles and domains in ...
11
votes
5answers
1k views

What is the best practice for managing Web.config changes in a solution?

To my knowledge, it is considered a best practice not to include any of Sitecore's out-of-the-box configuration files into Visual Studio web projects. The reason being, if you handle all configuration ...
9
votes
2answers
3k views

“Index sitecore_marketingdefinitions_master was not found” exception in Sitecore 9

Sometimes when we change config file or deploy new code, we see this exception on first load of page: Server Error in '/' Application. Index sitecore_marketingdefinitions_master was not found ...
7
votes
2answers
1k views

How to run Sitecore in Live Mode?

I need to run my front-end website by pointing to master database, temporarily. What settings should I change to achieve this?
6
votes
1answer
1k views

How to setup a Reverse proxy with Sitecore?

Is there a way that for certain URLs (like /blog/*) to load the content from other server, i.e implementing a reverse proxy? We were able to do this with a normal site (non Sitecore) but when ...
14
votes
3answers
665 views

Automating server role configuration

When configuring server instances in a distributed environment, a range of config files must be enabled or disabled based on the instance role (e.g. CD, CM, Processing, Aggregation), referencing the "...
8
votes
1answer
2k views

How to set X-Frame-Options to deny?

I have a recently upgraded solution, now running on Sitecore 8.1-upd3. Apparently in this version, Sitecore includes a http module to include a X-Frame-Options header, set to SAMEORIGIN: <add type="...
7
votes
2answers
2k views

Error when loading config: Reader in incorrect state

I have an include file to remove the annoying Commerce License Warning on 8.1 update 3. But the patch file fails to load in. The log files show the following error: "860 10:07:58 ERROR Could not ...
4
votes
3answers
453 views

What is Sitecore Live Mode?

Sitecore CMS normally uses web database content to display in fornt-end website. What is the way to run Sitecore front-end website pointing to master database. Does that mean running Sitecore ...
3
votes
3answers
991 views

Technique for changing Sitecore configuration for unit tests

When we unit test we often need to change some Sitecore configuration for the tests. For example, we may have the following: <sitecore> <configuration> <someNode name="myService"&...
23
votes
5answers
6k views

How do I disable /sitecore access on a Content Delivery Server?

I have 2 servers: Content Delivery - the live site pointing to the web database. Content Management - the internal only site pointing to the master database. I want to prevent access to /sitecore on ...
11
votes
5answers
6k views

How do I configure Sitecore to serve multiple sites?

I want to configure my instance of Sitecore to respond with different sites at different urls. How can I do this?
12
votes
3answers
2k views

Cannot patch Sitecore initialize pipeline (Sitecore 8.1 Update 3)

I am trying to patch the initialize pipeline to add a processor. I simply add the following config (obtained from a KB article here) in include folder: <?xml version="1.0" encoding="utf-8"?> &...
9
votes
2answers
1k views

Content delivery setup - Lucene indexes

I have an issue that Lucene indexes are not updated or properly created on the content delivery server after a rebuild of the indexes on the content management server or after an item publish. The ...
7
votes
2answers
377 views

Sitecore 9 Installation, CPU now at 100% usage

I've installed Solr & Sitecore 9 using the following tutorials/scripts and now my CPU usage is at 100 percent, stemming mostly from Java and XConnectSearchIndexer as per the screenshot. Has ...
13
votes
2answers
4k views

Configuring Sitecore to display PDFs in browser

Currently, when a user clicks on a PDF link on my site (served from the Media Library), the browser will download the PDF file. I'd like to change the behavior from downloading to opening in browser (...
7
votes
2answers
1k views

Patching to remove index update strategies

While configuring cd instance on SOLR one has to remove index update strategies and set to manual from index definitions on cd server. Can we do that using sitecore patching?
6
votes
1answer
264 views

Patching xConnect, AutomationEngine, IndexWorker configuration

Is there a way to patch xConnect, AutomationEngine, IndexWorker configuration in a way we do it for sitecore instance? I.e. configuration that resides in xConnect instance folders: \App_data\config\...
5
votes
3answers
854 views

Comparing a Sitecore instance with a vanilla one

I am switching work computer and I want to get rid of many local Sitecore instances. I have 30+ instances from 7.0 to 8.2. To find out which Sitecore instances I can safely delete and which ones need ...
6
votes
1answer
9k views

How to configure caching for static resources in Sitecore

How can I enable caching for static resources such as CSS and JavaScript files in a Sitecore solution? I need these resources to have the following response header present: Cache-Control:public, max-...
5
votes
2answers
1k views

How to setup sitecore site from existing database and website folder?

I have a database and website folder backup provided by the client. How can I configure a sitecore site manually or by using the Sitecore Instance Manager?
4
votes
2answers
813 views

How to make Experience Editor placeholders editable without placeholder settings?

Normally, we need to define placeholders with allowed renderings in placeholder settings, to allow Experience Editor to support. What is the way to configure placeholders editable in the Experience ...
12
votes
2answers
1k views

Disable EXM and remove connection strings

I've disabled EXM (in Sitecore 9.0.1): <setting name="EXM.Enabled" value="false" /> I've also removed the exm.master, EXM.CryptographicKey and EXM.AuthenticationKey connection strings. I'm ...
10
votes
2answers
953 views

SearchConfiguration is not configured correctly. ContentSearchConfiguration was expected but System.String was returned

I am getting this error when trying to access a Sitecore website. Here's a screenshot of the complete error message. It probably has to do with configuring Solr to work with Sitecore. Does anyone ...
6
votes
1answer
263 views

Unhide Ribbon strips

I have managed to hide all ribbon strips by right clicking on ribbon and un checking them. I have zero strips now, on the ribbon and so, ribbon is hidden. I cannot able to get them back. I have ...
5
votes
1answer
360 views

Why is my LastPasswordChangedDate 5 hours in the future?

I have a Sitecore 8.1-3 instance. I am trying to get the Datetime that the user's password was last changed. I am using this code: var membershipUser = Membership.GetUser(myUserName); var ...
5
votes
2answers
4k views

What is a pipeline?

In the Sitecore configuration, I see a lot of different nodes under the <pipelines> element. I have been through the Sitecore Certification course and don't recall us covering these in detail? ...
5
votes
2answers
465 views

Update the sitecore.configs at runtime possible?

We have a requirement to store all the secrets on to azure key-vault. This requires us to update the configurations at Runtime. One challenge we are facing at the moment is to store the password for ...
3
votes
1answer
269 views

Sitecore Diagnostics Tool shows a lot of warnings for Configuration Pipelines consistency for CD role

I'm installing a Content Delivery node, and accordingly, to Sitecore guidelines says that some CONFIG files must be disabled. As I've done it manually, I was expecting that Sitecore Diagnostics Tool ...
3
votes
1answer
184 views

Sitecore Diagnostics Tool shows WebDAV must be disabled on CD but it is already

I'm installing a Content Delivery (Sitecore 8.2 update 3) node and also running Sitecore Diagnostics Tool to validate it. In addition to my other question, I'm also seeing a warning that says ...
2
votes
1answer
346 views

Custom Azure Search Index returns '&search=This_Is_Equal_ConstNode_Return_Nothing' for searches

I have setup an custom Azure Search index in Sitecore 8.2 u7 and was getting no results returned even though I have data in it (I can see the data in the Azure console). Looking in the Sitecore Search ...
1
vote
0answers
44 views

Why there is no OOTB LanguageDefinition for a Language which name is “en”?

I'm using a vanilla Sitecore 82u6. When checking the .showconfig.aspx page I realized that the default language name is: <setting name="ClientLanguage" value="en" patch:source="Sitecore....
0
votes
2answers
269 views

Sitecore CRM Connect 1.1 Issues connecting to MS Dynamics [closed]

I'm currently following the configuration guide for Crm Connect v1.1 and the instructions seem to cover connecting to a web based instance of Dynamics but not an on premise instance via AD. The ...
0
votes
2answers
394 views

xConnect The HTTP response was not successful: Unauthorized on Azure PaaS

Very similar to this question: xConnect The HTTP response was not successful: Unauthorized But in this case, it's in Azure PaaS so a lot of the answers are not applicable. How can I make sure the ...