Current time: 11-25-2024, 07:35 AM Hello There, Guest! (LoginRegister)


Post Reply 
ispcp-apache-logger bugs ?
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #3
RE: ispcp-apache-logger bugs ?
Apache logger expect a specific line format to determine witch host is belonging to
Code:
my ($vhost, $size, $line) = $log_line =~ m/^(\S+) (\d+|-) (.*)$/s;
\S+ -> Match a string that do not contain whitespace character(domain names do not allow white spaces).
\d+|- A number or a dash (page + headers size).
Rest of the line.
Now log format is
Code:
LogFormat "%v %b %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" ispcplog
Can apache send wrong parameters to logger?
05-07-2009 12:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
ispcp-apache-logger bugs ? - blocker - 05-06-2009, 11:49 AM
RE: ispcp-apache-logger bugs ? - kilburn - 05-06-2009, 08:01 PM
RE: ispcp-apache-logger bugs ? - sci2tech - 05-07-2009 12:46 AM
RE: ispcp-apache-logger bugs ? - kilburn - 05-07-2009, 01:11 AM
RE: ispcp-apache-logger bugs ? - sci2tech - 05-07-2009, 01:15 AM
RE: ispcp-apache-logger bugs ? - kilburn - 05-07-2009, 03:37 AM
RE: ispcp-apache-logger bugs ? - sci2tech - 05-07-2009, 04:04 AM
RE: ispcp-apache-logger bugs ? - blocker - 05-11-2009, 05:03 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)