perhaps:
http {
index index.html;
server {
server_name www.domain1.com;
access_log logs/domain1.access.log main;
root /www/;
}
server {
server_name www.domain2.com;
access_log logs/domain2.access.log main;
root /www/x;
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,188059,188587#msg-188587