1:80端口 不同域名
server {
listen 80;
server_name www.aaa.con aaa.con;
location / {
proxy_pass http://www.aaa.con:8087/proj1/;
}
location /proj1/ {
proxy_pass http://www.aaa.con:8087/proj1/;
}
}
server {
listen 80;
server_name www.bbb.con bbb.con;
location / {
proxy_pass http://www.aaa.con:8087/proj2/;
}
location /proj2/ {
proxy_pass http://www.aaa.con:8087/proj2/;
}
}