袁启勋
August 26, 2010 11:56AM
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



_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

For Nginx proxy module problem

袁启勋 August 26, 2010 11:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready