Condition to match a missing "Host:" header

Igor Sysoev is at rambler-co.ru
Thu Aug 21 19:27:18 MSD 2008


On Thu, Aug 21, 2008 at 05:20:09PM +0200, Luigi Perroti wrote:

> I'm trying to write a simple if condition, inside a location block,
> that evaluates true when the client didn't send a Host header.
> 
> I tried many combinations using the $host variable but no luck so far.
> Any hints?

Why do you need to test it ?
Have you tried the configuration in my previous mail ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list