t/lib-httpd/apache.conf: do not use LockFile in apache >= 2.4
authorJeff King <peff@peff.net>
Sun, 9 Jun 2013 08:07:59 +0000 (04:07 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2013 17:27:54 +0000 (10:27 -0700)
The LockFile directive from earlier versions of apache has
been replaced by the Mutex directive. The latter seems to
give sane defaults and does not need any specific
customization, so we can get away with just adding a version
check to the use of LockFile.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd/apache.conf
index 542241b229c96a51bc1b32d72e33b9fcb0d313be..891edd716cba85cfaf9820fa5265972beb408aeb 100644 (file)
@@ -1,5 +1,7 @@
 ServerName dummy
 ServerName dummy
+<IfVersion < 2.4>
 LockFile accept.lock
 LockFile accept.lock
+</IfVersion>
 PidFile httpd.pid
 DocumentRoot www
 LogFormat "%h %l %u %t \"%r\" %>s %b" common
 PidFile httpd.pid
 DocumentRoot www
 LogFormat "%h %l %u %t \"%r\" %>s %b" common