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



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...


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

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.