server{
listen 80;
server_name
domainA.com;
root /home/wwwroot/sss;
index indezx.php;
}
server{
listen 80;
server_name
sss.yourdomain.org;
proxy_pass http://127.0.0.1:8888;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
server{
listen 80;
server_name
sss2.yourdomain.org;
proxy_pass http://127.0.0.1:8000;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
手机打,凑合着看吧