SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I locate the web.config for a host-named site collection ? or Which web.config can I use for making web.config related changes for a host-named site collection ?

share|improve this question

All (related) host named site collections are sharing the same web.config as they are all located under a single web application (= entry within IIS).

Look into the web application list (central administration) to find the parent web application and then adapt the relevant web.config within IIS.

enter image description here

Please be aware that I'll have impact on all other HNSC.

share|improve this answer
for further information :… – Francois Verbeeck Aug 3 '12 at 11:49
Thanks @Francois - that is a very informative article. – Russell Feb 25 '13 at 4:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.