RewriteCond for HTTP header

Brent Bloxam brentb at beanfield.com
Mon Jun 15 19:53:36 MSD 2009


Tobias Wissmueller wrote:
> Igor Sysoev wrote:
>> On Mon, Jun 15, 2009 at 04:07:29PM +0200, Tobias Wissmueller wrote:
>>
>>> Hi Group,
>>>
>>> I am using several rewrite conditions and rules in nginx, but I am not
>>> able how to translate the following Apache condition to nginx:
>>>
>>> RewriteCond %{HTTP:X-ISSSL} !^TRUE$
>>>
>>> Any help highly appreciated.
>>   if ($http_x_isssl != TRUE) {
>>   }
> 
> Thank you Igor. Is there some document where I can look this up?
> 
> Tobi

I believe you're looking for the core HTTP module varibles, specifically 
http://wiki.nginx.org/NginxHttpCoreModule#.24http_HEADER

Keep in mind - is translated to _. This allows checking the value of any 
header.





More information about the nginx mailing list