For Nginx proxy module problem

袁启勋 yuanqixun at gmail.com
Thu Aug 26 19:31:56 MSD 2010


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  





More information about the nginx mailing list