Hierarchical configuration system
We have mentioned that there can be multiple configuration files on the server that exist in different directory. When a detailed URL request arrives, ASP+Calculate the setting of the URL in the hierarchical structure, and use the configuration file that is located in the path for the requested URL.
For example, the structure of a site is as follows:
application root
| ----- subdir1
| ----- subdir2
The idea is that the configuration application setting allows all users to access the application root directory (Application root) so that the selected users can access the two subdirectories.
Now, assume that there is a config.web file in the directory Subdir1, there is no config.web file in the Application Root and Subdir2. In this example, two config.web files are actually used. The config.web file of the highest level is located at%Windir%/Complus/Version directory. It is installed with NGWS SDK and contains the default settings. This file is considered at the machine level, and all ASP+directory and subdires have inherited their settings. The default safety section setting of this file is to allow access to all users. When the Application Root directory does not have configuration files, that is, without editing this setting value, all users will allow access to this directory because this directory inherits the setting of the machine -level configuration file. If the config.web file in the subdir1 directory contains a security configuration section, it is set to allow some users to access the directory, then the Subdir2 directory will inherit its setting, but the Application Root directory is not affected. Therefore, all users can access the Application Root directory, but only some users can access two subdirectory.
Standard configuration settings
ASP+environment comes with a standard config.web file, which contains a rich configuration settings collection. This file is located in
%Windir%/Complus/Version directory. In the configuration file of Machine Level, we can find the standard configuration section under the ASP+standard configuration of the section processor.
[Email Protected]
To be continued ...