Received: (qmail 824 invoked by uid 2012); 26 Oct 1998 10:20:30 -0000 Message-Id: <19981026102030.823.qmail@hyperreal.org> Date: 26 Oct 1998 10:20:30 -0000 From: Dominic Hulewicz Reply-To: dom@intanet.com To: apbugs@hyperreal.org Subject: CustomLog does not show environment variables X-Send-Pr-Version: 3.2 >Number: 3292 >Category: mod_log-any >Synopsis: CustomLog does not show environment variables >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Oct 26 02:30:00 PST 1998 >Last-Modified: Mon Oct 26 08:42:28 PST 1998 >Originator: dom@intanet.com >Organization: >Release: 1.3.3 (Unix) >Environment: SunOS 4.1.4 sun4c, gcc version 2.7.0 >Description: The documentation for mod_log_config shows that you can use %{FOOBAR}e strings in a CustomLog line to add contents from environment variables into log files. I have tried the following in a virtual host: LogFormat "%h %l %u %t \"%{REQUEST_METHOD}e %{HTTP_HOST}e %{REQUEST_URI}e %{SERVER_PROTOCOL}e\" %s %b" fullurl CustomLog /logs/testlog fullurl But in the log file entries, the environment variables are always replaced by hyphens, e.g. some.site.com - - [26/Oct/1998:10:08:42 +0000] "- - - -" 302 229 >How-To-Repeat: Try it for yourself ! :-) >Fix: Nope. >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Mon Oct 26 08:42:26 PST 1998 State-Changed-Why: Those are not environment variables, but CGI variables which are placed into the environment for execution of CGI scripts. Apache does not set them all internally on every request when it isn't executing a CGI due to the overhead of doing so. >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]