By default, the settings in a Machine.config or Web.config file are applied to all pages in the same folder and below.
You can apply configuration settings to a particular path.
You apply configuration settings to a particular path by using the element.
For example, the following web configuration file enables password-protection for a single file named Secret.aspx.
The element must be added as an immediate child of the element.
File: Web.config