]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Add patch to support host_proxy tag in LogFormat (for Apache LogFormat containing...
authoreldy <>
Sun, 24 Aug 2008 16:29:14 +0000 (16:29 +0000)
committereldy <>
Sun, 24 Aug 2008 16:29:14 +0000 (16:29 +0000)
wwwroot/cgi-bin/awstats.pl

index c9cabf95729ea2eeb92003266737329a0002a3ce..8d952a778baf0cecfa96ed3761b123426238cf85 100644 (file)
@@ -5213,6 +5213,10 @@ sub DefinePerlParsingFormat {
                                $pos_host = $i; $i++; push @fieldlib, 'host';
                                $PerlParsingFormat .= "([^$LogSeparatorWithoutStar]+)";
                        }
+                       elsif ($f =~ /%host_proxy$/) {  # if host_proxy tag used, host tag must not be used
+                               $pos_host = $i; $i++; push @fieldlib, 'host';
+                               $PerlParsingFormat .= "(.+?)(?:, .*)*";
+                       }
                        elsif ($f =~ /%logname$/) {
                                $pos_logname = $i; $i++; push @fieldlib, 'logname';
                                $PerlParsingFormat .= "([^$LogSeparatorWithoutStar]+)";