You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Monte Ohrt <mo...@ispi.net> on 2001/11/21 23:30:32 UTC

mod_log-any/8829: log file does not respect virtual host SetEnv TZ .... with static content

>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 <ap...@Apache.Org> 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!     ]