我正在尝试在本地主机上运行多个flask应用程序。
server {
listen 80;
server_name localhost;
location / {
include proxy_params;
proxy_pass http://unix:/app1.sock;
}
}
server {
listen 8081;
server_name localhost;
location / {
include proxy_params;
proxy_pass http://unix:/app2.sock;
}
}
可以在localhost:80
访问App1,但是在localhost:8081
访问app2则返回404。