freebsd-ports/www/apache21/files/patch-support:log_server_status.in
David W. Chapman Jr. 6d2b11cde9 Update to 2.0.28
PR:		32043
Submitted by:	maintainer
2001-11-19 22:47:47 +00:00

24 lines
838 B
Text

--- support/log_server_status.in.orig Fri Nov 16 22:11:16 2001
+++ support/log_server_status.in Fri Nov 16 22:13:50 2001
@@ -63,10 +63,10 @@
#
require 'sys/socket.ph';
-$wherelog = "/var/log/graph/"; # Logs will be like "/var/log/graph/19960312"
+$wherelog = "/var/log/httpd-status-"; # Logs will be like "/var/log/httpd-status-19960312.log"
$server = "localhost"; # Name of server, could be "www.foo.com"
$port = "80"; # Port on server
-$request = "/status/?auto"; # Request to send
+$request = "/status-status/?auto"; # Request to send
sub tcp_connect
{
@@ -96,7 +96,7 @@
chomp($date);
($day,$time)=split(/:/,$date);
$res=&tcp_connect($server,$port);
- open(OUT,">>$wherelog$day");
+ open(OUT,">>$wherelog$day.log");
if ($res) {
print OUT "$time:-1:-1:-1:-1:$res\n";
exit 1;