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:
http://forum.nginx.org/read.php?2,188059,188059#msg-188059

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs