- ACCEPT_RANGE:Enable range requests.
-
When enabled, sreLite2 will look for range headers, and return
the appropriate range of document. sreLite2 will also send
Accept: range headers on most responses.
0=disable
1= Enable
Example:
accept_range=1
- ADD_SLASH: Check for "subdirectory without trailing /" entries
-
If a selector that looks like it's a subdirectory without a trailing
/ is recieved, sreLite2 can add a / and redirect the client.
For example, if ADD_SLASH is enabled and if the selector is
/myfiles/newstuff
then sreLite2 will return a 301 (redirect) response to the client with
a location of
/myfiles/newstuff/
Most clients will then reissue this (/myfiles/newstuff/), a request
that the DEFAULTS parameter (below) helps resolve.
0 = Do NOT check for this condition
1 = Check
Setting ADD_SLASH=0 will save a teeny bit of processing, but requires
that clients are careful when asking for directory specific default
documents (they should always append the trailing /).
Example:
add_slash=1
Note: ADD_SLASH is only used for GET and HEAD requests.
- ALIASES : Aliasing rules.
-
Aliasing is used for specifying virtual directories,
and for "internal" and "external" redirection.
Selectors (after all access controls have been completed)
are compared to the "oldselector' field, and the "best" match
is used (* can be used as a wildcard).
The syntax of each entry is:
aliases =oldselector newselector
Both the oldselector and newselector can contain * wildcards.
Notes:
-
Asterisk (*) wildcards in the newselector are used as
"* replacement" -- portions of the oldselector, that
wildcard match the requested selector, are copied
to the respective * location in the newselector.
-
On multi-host systems...
-
The order of match comparisons is as follows, with later steps taken
only if earlier steps fail.
- Exact comparison to host-specific entries
- Wildcard comparison to host-specific entries
- Exact comparison to all-host entries
- Wildcard comparison to all-host entries
-
To redirect, newselector should start with http://
-
Instead of a "selector", you can specify a fully qualified
file name, or a fully qualified directory, as the newselector.
-
To specify a "virtual directory", use a fully qualified directory,
(that ends with an "/*") as the newselector.
-
sreLite2 is shipped with two aliases that allow server-side image
maps to be processed by the MAPIMAGE addon.
Examples:
aliases/wow /wow/index.htm
aliases=/gone/* /dog/gone/*
aliases=/gone* /dog/gone*
aliases=/hersite/ * http://www.hersite.org/*
aliases=www3//jokes/* e:\funnies\*
aliases=/imgs http://danielh/imgs/
aliases=www2//new/* /files/current/*
aliases=*//status /statusl?SUMMARY
- ALWAYS_GET_PRIVS Always get client specific privileges
-
Always check inhouseips entries and the username database
0 = only get privileges (from inhouseips or user database) if
required (if a selector requires some privilege)
1 = always check inhouseips, and always check the user database.
This means that the user will be asked for a username & password
EVEN IF a resource requires NO privileges. In such cases
(where the resource is available to all), the client can
enter any username (it need not be a username/password
defined in your SRELite/2 USERS.IN file)
There is one exception to this: SUPERUSER clients (as defined by
the SUPERUSERS parameter) will NOT be asked to supply a username
2= Same as 1, but even SUPERUSERs are asked for a username
Example:
always_get_privs=0
- DEFAULTS: list of default names to use when request ends with a /
-
DEFAULTS list documents to return when a directory-type
of entry (one that ends with a /) is requested. This
includes the "home page", as would be sent on a request to
http://foo.bar.net.
DEFAULTS should be spaced delimited set of filenames.
The first filename in the list is tried first, and
if no such file exists (in the appropriate directory),
latter names are tried.
Notes:
-
DEFAULTS are used AFTER aliasing.
-
a !DIR item means "display a linked directory listing".
-
If used, !DIR should always be the last item in the list
Example:
defaults=index.htm index.sht !DIR
- DEFAULT_REQUIRES: Default required priviliges
-
DEFAULT_REQUIRES sets the required privilge when the
does not match any of the sel_required. entries,
(such as when sel_required.0=0).
Suggested values are:
* = Any valid user (with a username/password) can obtain this
selector
0 = NO access control, anyone can obtain this selector
SUPERUSER = superusers only.
Example:
DEFAULT_REQUIRES=*
Notes:
-
DEFAULT_REQUIRES applies to all hosts. For a "host-specific"
default, specify an a_host_nickname//* entry in
SEL_REQUIRES.
- DIR_EXCLUSIONS: Directory exclusion list.
-
DIR_EXCLUSIONS is used when a !DIR item (in the DEFAULTS)
is activated.
DIR_EXCLUSIONS should be a space delimited list of file
and subdirectory patterns (which may contain wildcards).