"bin" => "application/octet-stream");
-$logfile = "./htdocs/access.log";
+# comment in to enable logs
+#$logfile = "./htdocs/access.log";
$path = "./htdocs";
$sockaddr = 'S n a4 x8';
}
sub log {
- if (open(J, ">>$logfile")) {
+ if ($logfile && open(J, ">>$logfile")) {
my $q = $address . (($variables) ? "?$variables" : "");
$contentlength += 0;
$contentlength = 0 if ($method eq 'HEAD');