How to log virtual server name

Roger Pack lists at
Wed Aug 7 19:09:11 UTC 2013

seems for me that any of these work for showing the virtual host (for 

$http_host $host $server_name

I just had to uncomment this line for it to 'take', oddly:

 #access_log  logs/access.log  main;

@nginx dev guys:  it would be nice if the default config either 
mentioned that both log_format and access_log (commented out) lines need 
to be uncommented to take, or for them both to start uncommented avoid this confusion for others in the future...

Posted via

More information about the nginx mailing list