http: fix v1 protocol tests with apache httpd < 2.4
[gitweb.git] / t / lib-httpd / apache.conf
index 0642ae7e6ef0fbbd9e7eacdebd061d258c8b4222..724d9ae462b78af95298786a1fe26f375023ad55 100644 (file)
@@ -25,6 +25,9 @@ ErrorLog error.log
 <IfModule !mod_headers.c>
        LoadModule headers_module modules/mod_headers.so
 </IfModule>
+<IfModule !mod_setenvif.c>
+       LoadModule setenvif_module modules/mod_setenvif.so
+</IfModule>
 
 <IfVersion < 2.4>
 LockFile accept.lock
@@ -76,6 +79,8 @@ PassEnv ASAN_OPTIONS
 PassEnv GIT_TRACE
 PassEnv GIT_CONFIG_NOSYSTEM
 
+SetEnvIf Git-Protocol ".*" GIT_PROTOCOL=$0
+
 Alias /dumb/ www/
 Alias /auth/dumb/ www/auth/dumb/