
obj.conf
Chapter 2 Configuration Files 83
set-default-type Allows you to define a default charset,
content-encoding,andcontent-language
for the response being sentback to the client.
enc (optional) the encoding assigned to a matching
request (the content-encoding header).
lang (optional) the language assigned to a matching
request (the content-language header).
charset (optional) the character setfor the
magnus-charset parameterinrq->srvhdrs.If
the browser sent the Accept-charset header or
its User-agent is mozilla/1.1 or newer, then
append “; charset=
charset”tocontent-type,
where
charsetis the value of the
magnus-charset parameter in rq->srvhdrs.
shtml-hacktype Requeststhat .htm and .html files areparsed for
server-parsed html commands.
exec-hack The value is
ignored
(UNIX only, optional) if present,tells the function
to change thecontent-type only ifthe execute bit is
enabled.
type-by-exp Sets the content-type header for the response
based on the requested path.
exp The wildcard pattern of paths for which this
function is applied.
type (optional)the type assigned to a matching request
(the content-type header).
enc (optional) the encoding assigned to a matching
request (the content-encoding header).
lang (optional) the language assigned to a matching
request (the content-language header).
charset (optional) the character setfor the
magnus-charset parameterinrq->srvhdrs.If
the browser sent the Accept-charset header or
its User-agent is mozilla/1.1 or newer, then
append “; charset=
charset”tocontent-type,
where
charsetis the value of the
magnus-charset parameter in rq->srvhdrs.
Table 2-18 obj.conf ObjectType functions
Function/Parameter Allowed
Values
Default Value Description
Komentarze do niniejszej Instrukcji