Condition to match a missing "Host:" header

Luigi Perroti luigi.perroti at googlemail.com
Thu Aug 21 19:20:09 MSD 2008


Hi,

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?

Thanks





More information about the nginx mailing list