tests: adjust the configuration for Apache 2.2
commitf1f2b45be0a2b205fc07758e0f4e9c13e90d34d9
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 9 May 2016 05:59:16 +0000 (9 07:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 May 2016 17:27:42 +0000 (10 10:27 -0700)
tree4b11978f3ff68706f7fd223b9d0e778728d45f0b
parent8cb01e2fd3a50b6d0893dfb066183f16a3c7a355
tests: adjust the configuration for Apache 2.2

Lars Schneider noticed that the configuration introduced to test the
extra HTTP headers cannot be used with Apache 2.2 (which is still
actively maintained, as pointed out by Junio Hamano).

To let the tests pass with Apache 2.2 again, let's substitute the
offending <RequireAll> and `expr` by using old school RewriteCond
statements.

As RewriteCond does not allow testing for *non*-matches, we simply match
the desired case first and let it pass by marking the RewriteRule as
'[L]' ("last rule, do not process any other matching RewriteRules after
this"), and then have another RewriteRule that matches all other cases
and lets them fail via '[F]' ("fail").

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Tested-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd/apache.conf