Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.513 2002/05/16 12:28:41 stewa Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.514 2002/05/29 15:12:52 anders Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:3369:    "404: $host $referer - [$cern_date] \"$method $resource $protocol\" 404 -\n"    "500: $host $referer ERROR [$cern_date] \"$method $resource $protocol\" 500 -\n"    "*: $host - - [$cern_date] \"$method $resource $protocol\" $response $length",    DLOCALE(26, "Logging: Format"),    TYPE_TEXT_FIELD|VAR_MORE,    DLOCALE(27, #"What format to use for logging. The syntax is:   <pre>response-code or *: Log format for that response code      Log format is normal characters, or one or more of the variables below:    - \\n \\t \\r -- As in C, newline, tab and linefeed - $char(int) -- Insert the (1 byte) character specified by the integer. - $wchar(int) -- Insert the (2 byte) word specified by the integer. - $int(int) -- Insert the (4 byte) word specified by the integer. - $^ -- Supress newline at the end of the logentry - $host -- The remote host name, or ip number. - $vhost -- The Host request-header sent by the client, or - if none - $ip_number -- The remote ip number. - $bin-ip_number -- The remote host id as a binary integer number. - $cern_date -- Cern Common Log file format date. - $bin-date -- Time, but as an 32 bit integer in network byteorder - $method -- Request method - $resource -- Resource identifier - $full_resource -- Full requested resource, including any query fields - $protocol -- The protocol used (normally HTTP/1.0) - $response -- The response code sent - $bin-response -- The response code sent as a binary short number - $length -- The length of the data section of the reply - $bin-length -- Same, but as an 32 bit integer in network byteorder - $request-time -- The time the request took (seconds) - $referer -- the header 'referer' from the request, or '-'. - $user_agent -- the header 'User-Agent' from the request, or '-'.\n - $user -- the name of the auth user used, if any - $user_id -- A unique user ID, if cookies are supported, + \\n \\t \\r -- As in C, newline, tab and linefeed + $char(int) -- Insert the (1 byte) character specified by the integer. + $wchar(int) -- Insert the (2 byte) word specified by the integer. + $int(int) -- Insert the (4 byte) word specified by the integer. + $^ -- Supress newline at the end of the logentry + $host -- The remote host name, or ip number. + $vhost -- The Host request-header sent by the client, or - if none + $ip_number -- The remote ip number. + $bin-ip_number -- The remote host id as a binary integer number. + $cern_date -- Cern Common Log file format date. + $bin-date -- Time, but as an 32 bit integer in network byteorder + $method -- Request method + $resource -- Resource identifier + $full_resource -- Full requested resource, including any query fields + $protocol -- The protocol used (normally HTTP/1.0) + $response -- The response code sent + $bin-response -- The response code sent as a binary short number + $length -- The length of the data section of the reply + $bin-length -- Same, but as an 32 bit integer in network byteorder + $request-time -- The time the request took (seconds) + $referer -- The header 'referer' from the request, or '-'. + $user_agent -- The header 'User-Agent' from the request, or '-'. + $user_agent_raw -- Same, but spaces in the name are encoded to %20. + $user -- the name of the auth user used, if any + $user_id -- A unique user ID, if cookies are supported,    by the client, otherwise '0' - $cache-status -- A comma separated list of words (containing no + $cache-status -- A comma separated list of words (containing no    whitespace) that describes which cache(s) the page    was delivered from:    protcache -- The low-level cache in the HTTP    protocol module.    xsltcache -- The XSLT cache.    pcoderam -- RXML parse tree RAM cache.    pcodedisk -- RXML parse tree persistent cache.    cachetag -- No RXML &lt;cache&gt; tag misses.    nocache -- No hit in any known cache.   </pre>"), 0, lambda(){ return !query("Log");});