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

In SharePoint, Web.Config file is only one as per One Web Application.


I have a One Web Application, Inside it different site collections, Now if i change something in web.config file it will applied all site collections,

but my requirement is web.config should be different for each site collections, so modification in web.config applied particular site collections.

Is it possible ?

Any advice would be appreciated


share|improve this question
up vote 4 down vote accepted

No, you can't have different web.config for different site collections, however you maybe be able to add tweaks e.g. HttpModule and HttpHandlers configurations to it depending on your requirements...

share|improve this answer

You can not have different web.config for different site collection. If you have different configuration for each sitecollection it is better to use site collection property bag

share|improve this answer

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.