Received: (qmail 33457 invoked by uid 501); 21 Nov 2001 22:30:32 -0000 Message-Id: <20011121223032.33456.qmail@apache.org> Date: 21 Nov 2001 22:30:32 -0000 From: Monte Ohrt Reply-To: monte@ispi.net To: submit@bugz.apache.org Subject: log file does not respect virtual host SetEnv TZ .... with static content X-Send-Pr-Version: 3.110 >Number: 8829 >Category: mod_log-any >Synopsis: log file does not respect virtual host SetEnv TZ .... with static content >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Nov 21 14:40:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: monte@ispi.net >Release: 1.3.X >Organization: apache >Environment: Solaris 8 (5.8 Generic_108528-09 sun4u sparc SUNW,UltraAX-MP) >Description: Apache's log files do not respect the timezone offset for a virtual host when retrieving static content such as .html or .gif files. Instead, it uses the server's local timezone offset. Other dynamic content such as .php or .cgi files don't seem to have this problem. >How-To-Repeat: Setup a virtual host, set the time zone with something like SetEnv TZ America/New_York (this is assuming your servers timezone is not in America/New_York) Then fetch index.html (static content), then hit a dyamic page, such as *.php. You will see different timezone offsets in the access_log file. access_log example (see timezone offset): 65.64.32.145 - - [21/Nov/2001:10:58:49 -0800] "GET /display.php/ARC?submit=search HTTP/1.1" 200 3511 - "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)" 65.64.32.145 - - [21/Nov/2001:12:58:56 -0600] "GET /images/default/corner_bottom_rt.gif HTTP/1.1" 200 124 - "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)" >Fix: >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database 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! ]