]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/lib-httpd/apache.conf
Merge branch 'jk/http-test-fixes'
[thirdparty/git.git] / t / lib-httpd / apache.conf
index 51a4fbcf621a4bf023522747e1a1569ecf30edc4..31f82fa0934dd545af91e7659e043ffaff740aef 100644 (file)
@@ -31,7 +31,7 @@ ErrorLog error.log
 
 <IfDefine HTTP2>
 LoadModule http2_module modules/mod_http2.so
-Protocols h2c
+Protocols h2 h2c
 </IfDefine>
 
 <IfModule !mod_auth_basic.c>
@@ -47,6 +47,22 @@ Protocols h2c
        LoadModule authz_host_module modules/mod_authz_host.so
 </IfModule>
 
+<IfDefine PROXY>
+<IfModule !mod_proxy.c>
+       LoadModule proxy_module modules/mod_proxy.so
+</IfModule>
+<IfModule !mod_proxy_http.c>
+       LoadModule proxy_http_module modules/mod_proxy_http.so
+</IfModule>
+ProxyRequests On
+<Proxy "*">
+       AuthType Basic
+       AuthName "proxy-auth"
+       AuthUserFile proxy-passwd
+       Require valid-user
+</Proxy>
+</IfDefine>
+
 <IfModule !mod_authn_core.c>
        LoadModule authn_core_module modules/mod_authn_core.so
 </IfModule>