I setup Nginx to server multiple websites from a single virtual host by doing this (A Default Catchall Virtual Host):
server {
listen 80 default;
server_name _;
However, my access logs are recording "_" instead of the site's domain name. How can I configure Nginx to record the host?
129.221.111.22 - - [31/Aug/2011:01:32:17 +0000] "GET /?p=12 HTTP/1.1" 200 2820 "-" "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"