Chapter 7, Configuring Server Preferences
175
Working with Dynamic Configuration Files
Using .nsconfig Files
With
.nsconfig
files, you can allow end users to apply access control or
customize error messages without allowing them to use CGI or parsed HTML.
The format and capability of these dynamic configuration files is described in
“Writing .nsconfig Files” on page 176
.
When a request is made for a resource in which dynamic configuration is
enabled, the server must search for the configuration files within one or more
directories of that resource. This search can be an expensive operation in terms
of performance, so the server lets you configure how much flexibility you need,
weighing it against the efficiency cost.
You can provide a base directory to the server, in which case the server starts
its search for configuration files from the filesystem directory. Alternatively, you
can provide no base directory, in which case the server attempts to infer the
base directory from the URL. That is, if the requested URL is to a file in the
document root, the server starts searching from the document root.
You also specify the name of the configuration file to search for within the base
directory.
If you centralize all of your configuration information for the subdirectories of
the base directory in the base directory’s configuration file, the server is more
efficient because it doesn’t have to search for configuration files in the
subdirectories.
However, you may sometimes want the server to search the subdirectories. If
you do, the server searches for
.nsconfig
files starting from the top level
directory and searching downward until reaching the directory in which the
referenced resource resides. The server processes
.nsconfig
files in the order
it encounters them. If a top level file restricts a user’s access, the server does
not give the user access, even though a lower level file might allow access.
The server processes all restrictions based on IP address and DNS entry
(
RestrictAccess
directive) as it finds them in a file. If the server finds a file
that denies a user access because of IP address or DNS entry, it stops
processing files. The server collects restrictions based on user name
(
RequireAuth
directive) and processes them at the end, unless the request
has already been denied because of IP address or DNS entry.
Содержание Netscape Enterprise Server
Страница 30: ...Contacting Technical Support 30 Netscape Enterprise Server Administrator s Guide ...
Страница 31: ...Part 1 Server Basics 31 1 Server Basics Introduction to Enterprise Server Administering Enterprise Servers ...
Страница 32: ...32 Netscape Enterprise Server Administrator s Guide ...
Страница 56: ...Sending Error Information to Netscape 56 Netscape Enterprise Server Administrator s Guide ...
Страница 64: ...Migrating a Server From a Previous Version 64 Netscape Enterprise Server Administrator s Guide ...
Страница 66: ...66 Netscape Enterprise Server Administrator s Guide ...
Страница 112: ...Managing a Preferred Language List 112 Netscape Enterprise Server Administrator s Guide ...
Страница 158: ...158 Netscape Enterprise Server Administrator s Guide ...
Страница 182: ...Using the Watchdog uxwdog Process Unix 182 Netscape Enterprise Server Administrator s Guide ...
Страница 196: ...Viewing Events Windows NT 196 Netscape Enterprise Server Administrator s Guide ...
Страница 218: ...Enabling the Subagent 218 Netscape Enterprise Server Administrator s Guide ...
Страница 266: ...266 Netscape Enterprise Server Administrator s Guide ...
Страница 302: ...Enabling WAI Services 302 Netscape Enterprise Server Administrator s Guide ...
Страница 310: ...310 Netscape Enterprise Server Administrator s Guide ...
Страница 390: ...Customizing the Web Publisher User Interface 390 Netscape Enterprise Server Administrator s Guide ...
Страница 446: ...Customizing the Search Interface 446 Netscape Enterprise Server Administrator s Guide ...
Страница 448: ...448 Netscape Enterprise Server Administrator s Guide ...
Страница 454: ...Responses 454 Netscape Enterprise Server Administrator s Guide ...
Страница 464: ...Referencing ACL Files in obj conf 464 Netscape Enterprise Server Administrator s Guide ...
Страница 504: ...504 Netscape Enterprise Server Administrator s Guide ...