1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00
freebsd-ports/www/apache2/files/patch-support:log_server_status.in
Will Andrews cfa00f01bb Bring in Apache 2.0.16-beta. Just in time for the release...
PR:		26410
Submitted by:	Chang, Hye-Shik <perky@python.or.kr>
Repocopied by:	asami
2001-04-13 04:43:48 +00:00

25 lines
780 B
Plaintext

--- support/log_server_status.in.orig Mon Mar 12 08:40:47 2001
+++ support/log_server_status.in Sat Apr 7 05:45:42 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-";
$server = "localhost"; # Name of server, could be "www.foo.com"
$port = "80"; # Port on server
-$request = "/status/?auto"; # Request to send
+$request = "/server-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;