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 ?


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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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