The following web.config file uses the <location> element to create two groups of settings.
One for the current directory and one that applies only to files in the subdirectory named Secure:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<!-Basic configuration settings go here. -->
</system.web>
<location path="/Secure">
<system.web>
<!-Configuration settings for the Secure subdirectory go here. -->
</system.web>
</location>
</configuration>
|