Multiple vhosts

I have tried to follow this http://wiki.nginx.org/VirtualHostExample but
it didn’t really worked for me.
I want to have 2 domains on my nginx server
one which will have root in c:www/x
and one which will have root in C:/www/
well I have been trying to make it work properly for hour but failed
:<so trying to get some help here

Posted at Nginx Forum:

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: