Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

It's difficult to explain this one. I want to setup a site which has a number of applications underneath it in IIS7. Basically I want a URL for a site like this for the root site:

mysite.domain.com

But I also want to host an application underneath this such as:

mysite.domain.com/test

This "test" instance shouldn't inherit anything from the parent's web.config at all. They must belong to the same site because the DNS is configured as such (unless I'm mistaken, and you can configure the DNS differently).

Any ideas on how you can do this?

share|improve this question

1 Answer 1

I don't think you can turn off configuration inheritance from the root per se, but the web.configs in the root of the sub-applications can overwrite or clear most of the settings done in the root web.config.

For appSettings, connectionStrings and other multiple children nodes, you can use

<clear />
<remove ... />

for single occurrence settings, just set a new value.

I don't think you can overwrite or remove 'configSections', but that should not be a problem.

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.