mirror of
https://github.com/git/git.git
synced 2025-04-16 04:55:46 +00:00
lib-httpd/apache.conf: check version only after mod_version loads
Commit 0442743 introduced an <IfVersion> directive near the top of the apache config file. However, at that point we have not yet checked for and loaded the mod_version module. This means that the directive will behave oddly if mod_version is dynamically loaded, failing to match when it should. We can fix this by moving the whole block below the LoadModule directive for mod_version. Reported-by: Brian Gernhardt <brian@gernhardtsoftware.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
296f0b3ea9
commit
5bdc47eb55
@ -1,7 +1,4 @@
|
||||
ServerName dummy
|
||||
<IfVersion < 2.4>
|
||||
LockFile accept.lock
|
||||
</IfVersion>
|
||||
PidFile httpd.pid
|
||||
DocumentRoot www
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
||||
@ -26,6 +23,10 @@ ErrorLog error.log
|
||||
LoadModule version_module modules/mod_version.so
|
||||
</IfModule>
|
||||
|
||||
<IfVersion < 2.4>
|
||||
LockFile accept.lock
|
||||
</IfVersion>
|
||||
|
||||
<IfVersion < 2.1>
|
||||
<IfModule !mod_auth.c>
|
||||
LoadModule auth_module modules/mod_auth.so
|
||||
|
Loading…
x
Reference in New Issue
Block a user