From: Junio C Hamano Date: Mon, 09 May 2016 16:23:51 GMT Subject: Re: [PATCH v7 1/3] tests: Adjust the configuration for Apache 2.2 Message-ID: In-Reply-To: <4a15c4e6c35cfb425da568d87e8b20b984e5325c.1462774709.git.johannes.schindelin@gmx.de> Johannes Schindelin writes: > +# Apache 2.2 does not understand , so we use RewriteCond. > +# And as RewriteCond unfortunately lacks "not equal" matching, we use this > +# ugly trick to fail *unless* the two headers are present. > +RewriteCond %{HTTP:x-magic-one} =abra > +RewriteCond %{HTTP:x-magic-two} =cadabra > +RewriteRule ^/smart_headers/.* - [L] > +RewriteRule ^/smart_headers/.* - [F] Clever. Thanks. Will queue.