@@ -34,17 +34,6 @@ LoadModule http2_module modules/mod_http2.so
34
34
Protocols h2 h2c
35
35
</IfDefine>
36
36
37
- <IfVersion < 2.4>
38
- LockFile accept.lock
39
- </IfVersion>
40
-
41
- <IfVersion < 2.1>
42
- <IfModule !mod_auth.c>
43
- LoadModule auth_module modules/mod_auth.so
44
- </IfModule>
45
- </IfVersion>
46
-
47
- <IfVersion >= 2.1>
48
37
<IfModule !mod_auth_basic.c>
49
38
LoadModule auth_basic_module modules/mod_auth_basic.so
50
39
</IfModule>
@@ -57,9 +46,7 @@ LockFile accept.lock
57
46
<IfModule !mod_authz_host.c>
58
47
LoadModule authz_host_module modules/mod_authz_host.so
59
48
</IfModule>
60
- </IfVersion>
61
49
62
- <IfVersion >= 2.4>
63
50
<IfModule !mod_authn_core.c>
64
51
LoadModule authn_core_module modules/mod_authn_core.so
65
52
</IfModule>
@@ -83,7 +70,6 @@ LockFile accept.lock
83
70
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
84
71
</IfModule>
85
72
</IfDefine>
86
- </IfVersion>
87
73
88
74
PassEnv GIT_VALGRIND
89
75
PassEnv GIT_VALGRIND_OPTIONS
@@ -123,6 +109,10 @@ Alias /auth/dumb/ www/auth/dumb/
123
109
Header set Set-Cookie name=value
124
110
</LocationMatch>
125
111
<LocationMatch /smart_headers/>
112
+ <RequireAll>
113
+ Require expr %{HTTP:x-magic-one} == 'abra'
114
+ Require expr %{HTTP:x-magic-two} == 'cadabra'
115
+ </RequireAll>
126
116
SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
127
117
SetEnv GIT_HTTP_EXPORT_ALL
128
118
</LocationMatch>
@@ -205,18 +195,6 @@ RewriteRule ^/intern-redir/(.*)/foo$ /smart/$1 [PT]
205
195
RewriteRule ^/redir-objects/(.*/info/refs)$ /dumb/$1 [PT]
206
196
RewriteRule ^/redir-objects/(.*/objects/.*)$ /dumb/$1 [R=301]
207
197
208
- # Apache 2.2 does not understand <RequireAll>, so we use RewriteCond.
209
- # And as RewriteCond does not allow testing for non-matches, we match
210
- # the desired case first (one has abra, two has cadabra), and let it
211
- # pass by marking the RewriteRule as [L], "last rule, do not process
212
- # any other matching RewriteRules after this"), and then have another
213
- # RewriteRule that matches all other cases and lets them fail via '[F]',
214
- # "fail the request".
215
- RewriteCond %{HTTP:x-magic-one} =abra
216
- RewriteCond %{HTTP:x-magic-two} =cadabra
217
- RewriteRule ^/smart_headers/.* - [L]
218
- RewriteRule ^/smart_headers/.* - [F]
219
-
220
198
<IfDefine SSL>
221
199
LoadModule ssl_module modules/mod_ssl.so
222
200
@@ -225,7 +203,6 @@ SSLCertificateKeyFile httpd.pem
225
203
SSLRandomSeed startup file:/dev/urandom 512
226
204
SSLRandomSeed connect file:/dev/urandom 512
227
205
SSLSessionCache none
228
- SSLMutex file:ssl_mutex
229
206
SSLEngine On
230
207
</IfDefine>
231
208
0 commit comments