認(rèn)證高級(jí)PHP講師
Start two uwsgi on different ports. Note that the logs and pid are also separated.
You are mainly not familiar with nginx configuration. In fact, just add a server
paragraph:
server {
listen 80;
server_name A的域名;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:A的uwsgi端口;
root html;
index index.html index.htm;
}
}
server {
listen 80;
server_name B的域名;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:B的uwsgi端口;
root html;
index index.html index.htm;
}
}