Init SAFs
250
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
Examples
The first example below initializes flexible logging into the file
/usr/netscape/servers/https-servername/logs/access
.
This will record the following items
This is the default format, which corresponds to the Common Log Format (CLF).
It is advisable that the first six elements of any log always be in exactly this format,
because a number of log analyzers expect that as output.
Any header value
%Req->headers.
headername
%
Name of authorized user
%Req->vars.auth-user%
Value of a cookie
%Req->headers.cookie.
name
%
Value of any variable
in
Req->vars
%Req->vars.
varname
%
Virtual Server ID
%vsid%
Init fn=flex-init
access="/usr/netscape/servers/https-servername/logs/access"
format.access="%Ses->client.ip% - %Req->vars.auth-user%
[%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length%"
•
ip or hostname, followed by the three characters “
-
”
•
the user name, followed by the two characters “
[
”
•
the system date, followed by the two characters “
]
”
•
the full HTTP request in quotes, followed by a single space
•
the HTTP result status in quotes, followed by a single space
•
the content length
Table 7-1
Typical components of flex-init formatting
Flex-log option
Component
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...