我正在尝试在Windows上运行两个Flask应用。但是,只有一个站点可以加载,而另一个则返回404错误。我读到WSGIDaemonProcess在Windows中是不可能的。有替代方法吗?
这是我的服务器配置:
Listen 80
<VirtualHost *:80>
DocumentRoot "C:\Users\user1\Documents\helloworld"
WSGIScriptAlias / C:\Users\user1\Documents\helloworld\hello.wsgi
<Directory C:\Users\user1\Documents\helloworld\>
Require all granted
</Directory>
</VirtualHost>
Listen 8080
<VirtualHost *:8080>
DocumentRoot "C:\Users\user1\Documents\hiworld"
WSGIScriptAlias / C:/Users/user1/Documents/hiworld/hi.wsgi
<Directory C:\Users\user1\Documents\hiworld\>
Require all granted
</Directory>
</VirtualHost>