在windows10上,apache2.4多个WSGI虚拟主机(不同端口)在一个主机向另一个主机发出少量请求后挂起

2024-04-19 11:30:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试在Windows10上用不同的端口在不同的虚拟主机上托管两个不同的应用程序。问题是,从一个应用程序到另一个应用程序的请求很少,apache就完全挂起了。你知道吗

将它们托管在一个具有不同路径的虚拟主机上似乎可以解决问题,禁用请求也是如此。你知道吗

这两个应用程序都是Python和web服务器。你知道吗

你知道吗httpd.conf文件

Listen 80
Listen 3000

ServerName localhost

<VirtualHost *:80>
    WSGIScriptAlias / F:\path\to\server.wsgi

    <Directory F:\path\to>
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:3000>
    WSGIScriptAlias / F:\another\path\to\server.wsgi

    <Directory F:\another\path\to>
        Require all granted
    </Directory>
</VirtualHost>

AcceptFilter http none
AcceptFilter https none

Tags: topath应用程序wsgiserveranotherrequireall