question about traffic statistics on each vhost,is it po

Igor Sysoev is at
Sat Oct 4 23:39:41 MSD 2008

On Sat, Oct 04, 2008 at 09:04:31PM +0200, Thomas wrote:

> Sorry for the previous email, I was simply not naming the log file correctly.
> In the meantime I have spotted a very strange behaviour: there are
> some polish servers that are constantly trying to spam my server,
> there is specially one which is annoying:
> When I look into my log files, I see that the $host is set to
>! How is that possible? The domain name is not pointing to my
> server IP because when I try to look at the webpage in firefox
> I get redirected to another crappy domain name What
> in hell is going on?

This is probably error in some scripts.

> Also sometimes I see that my own server is trying to connect to its
> nginx server, so I see $host set to Is that normal
> behaviour?

If request has no Host header, then nginx sets $host to a server IP address.
It's better to log $http_host.

Igor Sysoev

More information about the nginx mailing list