Chapter 7, Configuring Server Preferences
177
Working with Dynamic Configuration Files
<Files
PATTERN1
... directives ...
</Files
<Files
PATTERN2
... directives ...
</Files
PATTERN1
and
PATTERN2
are wildcard patterns that tell the server which
filesystem paths to apply the directives to. For example,
*
would apply the
directive to all filesystem pathnames. Any pattern given is first prefixed with the
directory containing the configuration file to ensure that the directives are
applied only to subdirectories. There can be as many sets of
Files
directives
in the
.nsconfig
file as you need.
The file can contain blank lines. Lines beginning with # are treated as
comments. Note that lines are limited to a maximum of 512 characters.
For Windows NT, all paths must use the forward slash (/) instead of the
backwards slash (\), otherwise you receive a server “path not found” error.
Each directive can take a variable number of parameters, all of which must be
lowercase. The
Files
directives include:
•
A
ddType exp=
SHEXP
type=
mime-type
enc=
http-encoding
AddType
assigns the give type or encoding to the paths represented by the
wildcard pattern
SHEXP
. One or both of
type
and
encoding
can appear,
but only one expression can be used. You cannot apply two MIME types or
encodings to the same pattern of the files.
•
ErrorFile reason=
error-string
code=
error-code
path=
html-file
ErrorFile
causes the HTML file described by the URL suffix
path
to be
sent in place of the server’s default error message. The file is substituted
when an error described by one or both of
reason
and
code
occurs.
path
is a valid URL to the local server but without the
http://
server
prefix. The error codes are the standard HTTP error codes:
•
401 Unauthorized
•
403 Forbidden
•
404 Not found
•
500 Server error
Содержание 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 ...