# By default, AWStats considers that records found in web log file are
# successful hits if HTTP code returned by server is a valid HTTP code (200
-# and 304). Any other code are reported in HTTP error chart.
-# However in some specific environment, with web server HTTP redirection,
-# you can choose to also accept other codes.
+# and 304). Any other code are reported in HTTP status chart.
+# Note that HTTP 'control codes', like redirection (302, 305) are not added by
+# default in this list as they are not pages seen by a visitor but are
+# protocol exchange codes to tell the browser to ask another page. Because
+# this other page will be counted and seen with a 200 or 304 code, if you
+# add such codes, you will have 2 pages viewed reported for only one in facts.
# Change : Effective for new updates only
# Example: "200 304 302 305"
# Default: "200 304"
'Size',
'First',
'Last',
-'Exclude filter'
+'Exclude filter',
+'* Codes shown here gave hits or traffic "not viewed" by visitors, so are isolated in this chart.'
);
# Return: None
#------------------------------------------------------------------------------
sub tab_end {
+ my $string=shift;
print "</TABLE></TD></TR></TABLE>";
+ if ($string) { print "$string<br>\n"; }
print "<br>\n\n";
}
next; # Next log record
}
}
+ elsif ($protocol == 2) { # FTP record
+ }
# Analyze: Robot
#---------------
}
# Canonize and clean target URL and referrer URL
+ # to define urlwithnoquery, tokenquery and standalonequery and $field[$pos_url]
#-----------------------------------------------
if ($URLNotCaseSensitive) { $field[$pos_url] =~ tr/A-Z/a-z/; }
if ($protocol == 2) { $field[$pos_url] =~ s/\s/%20/g; }
$standalonequery=$2||'';
}
if ($URLWithAnchor && $anchor) { $field[$pos_url].="#$anchor"; } # Restore anchor
-
# Here now urlwithnoquery is /mydir/mypage.ext, /mydir, /, /page#XXX
# Here now tokenquery is '' or '?' or ';'
# Here now standalonequery is '' or 'param1=x'
&tab_end;
}
- # BY HTTP ERRORS
+ # BY HTTP STATUS
#----------------------------
if ($ShowHTTPErrorsStats) {
if ($Debug) { debug("ShowHTTPErrorsStats",2); }
$total_h+=$_errors_h{$key};
$count++;
}
- &tab_end;
+ &tab_end($Message[154]);
}
# BY SMTP ERRORS
message150=Size
message151=First
message152=Last
-message153=Exclude filter
\ No newline at end of file
+message153=Exclude filter
+message154=* Codes shown here gave hits or traffic "not viewed" by visitors, so are isolated in this chart.
\ No newline at end of file
message150=Taille
message151=Premier
message152=Dernier
-message153=Filtre exclusion
\ No newline at end of file
+message153=Filtre exclusion
+message154=* Les codes présentées ici sont à l'origine de hits ou de traffic "non vus" par les visiteurs, aussi sont ils isolés dans ce rapport.
\ No newline at end of file