Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

Now,

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

Thanks

share|improve this question

2 Answers 2

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

 
discard

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.