3个wsgi应用程序,但只有'/'正在加载

时间:2018-09-07 13:55:58

标签: apache mod-wsgi

我具有此mod_wsgi配置,但只有web.py正常运行,而其他2个单独的wsgi应用程序尝试通过浏览器运行时却未找到。

<Directory /home/nikos/public_html>
    AllowOverride None
    Require all granted
</Directory>

WSGIDaemonProcess downloads user=nikos group=nikos threads=5 home=/home/nikos/public_html
WSGIScriptAlias /downloads /home/nikos/public_html/downloads.py process-group=downloads application-group=%{GLOBAL}

WSGIDaemonProcess clientele user=nikos group=nikos threads=5 home=/home/nikos/public_html
WSGIScriptAlias /clientele /home/nikos/public_html/clientele.py process-group=clientele application-group=%{GLOBAL}

WSGIDaemonProcess app user=nikos group=nikos threads=5 home=/home/nikos/public_html
WSGIScriptAlias / /home/nikos/public_html/app.py process-group=app application-group=%{GLOBAL}

例如,如果我尝试: http://superhost.gr/clientele.py

Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

我什至在httpd-vhosts.conf中尝试了此设置,以查看我的其他2个wsgi脚本是否可以在它们各自的独立域中运行。

<VirtualHost *:80>
    ServerName clientele.superhost.gr
    ServerAdmin nikos@superhost.gr

    <Directory /home/nikos/public_html>
        Require all granted
    </Directory>

    WSGIDaemonProcess clientele user=nikos group=nikos home=/home/nikos/public_html/
    WSGIScriptAlias / /home/nikos/public_html/clientele.py process-group=clientele application-group=%{GLOBAL}
</VirtualHost>




<VirtualHost *:80>
    ServerName downloads.superhost.gr
    ServerAdmin nikos@superhost.gr

    <Directory /home/nikos/public_html>
        Require all granted
    </Directory>

    WSGIDaemonProcess downloads user=nikos group=nikos home=/home/nikos/public_html/
    WSGIScriptAlias / /home/nikos/public_html/downloads.py process-group=downloads application-group=%{GLOBAL}
</VirtualHost>

但是...。当我给出其域名时,也会发生同样的事情,也就是说,在这种情况下,'web.py'也正在加载!

为什么只有'web.py'是唯一加载的wsgi脚本?

0 个答案:

没有答案