Condition to match a missing "Host:" header

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


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?


More information about the nginx mailing list