For Nginx proxy module problem

Hi,All,
How to config nginx’s proxy module to specify a application?
e.g.

server {
listen 80;
server_name server1.com
# Main location
location / {
proxy_pass http://127.0.0.1:8080/server1;
proxy_redirect off;
}
server {
listen 80;
server_name server2.com
# Main location
location / {
proxy_pass http://127.0.0.1:8080/server2;
proxy_redirect off;
}

Just as above show, I want to redirect the different request to the same
server’s different context.
how can I config nginx to do this?
Thanks
Yuan
2010-08-26

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