issue with capturing server name

Sven 'Darkman' Michels sven at
Sun Dec 12 22:22:09 MSK 2010


thanks for the quick reply.

Am 12.12.2010 19:58, schrieb Igor Sysoev:
> If you run nginx with debug log:
> you should see something like this:
> http header: "Host: www.internal.mydonain.tld"
> ...
> http regex set $domain to "www"

ok, debbuging enabled, but nothing with "regex" shows up. I'm getting
2010/12/12 20:10:37 [debug] 32080#0: *1 http header: "Host: www.internal.mydomain.tld"
2010/12/12 20:10:37 [debug] 32080#0: *1 http header done

which seems to be ok so far, but no regex matching somewhere...
Is there a need of some compiling options? nginx itself is liked against
pcre lib, so it looks ok so far for me...


More information about the nginx mailing list