如何在httpd-vhosts.conf中使用php设置Apache mod_wsgi?

如何在httpd-vhosts.conf中使用php设置Apache mod_wsgi?,php,apache,mod-wsgi,Php,Apache,Mod Wsgi,我想使用相同的域和端口(443)在httpd-vhosts.conf中使用php设置mod_wsgi。以下是httpd-vhosts.conf设置: <VirtualHost *:443> ServerName ctest.lock.com:443 DocumentRoot "/home/service/card" Alias /card "/home/service/card" <Directory "/home/service/card"&g

我想使用相同的域和端口(443)在httpd-vhosts.conf中使用php设置mod_wsgi。以下是httpd-vhosts.conf设置:

<VirtualHost *:443>
    ServerName ctest.lock.com:443
    DocumentRoot "/home/service/card"
    Alias /card "/home/service/card"
    <Directory "/home/service/card">
       Options FollowSymLinks Includes ExecCGI
       Require all granted
    </Directory>

    <IfModule mime_module>
    AddType 'text/html; charset=UTF-8' .html
    </IfModule>
</VirtualHost>

<VirtualHost *:443>
    ServerName ctest.lock.com:443

    #mod-wsgi : webtest
    WSGIScriptAlias /webtest /home/service/was/webtest/app.wsgi
    WSGIDaemonProcess webtest processes=4 threads=4 display-name=%{GROUP}
    <Directory /home/service/was/webtest/ >
        WSGIProcessGroup webtest
        Require all granted
    </Directory>
</VirtualHost>

ServerName ctest.lock.com:443
DocumentRoot“/主页/服务/卡”
别名/卡“/家庭/服务/卡”
选项如下SYMLINKS包括EXECGI
要求所有授权
AddType’text/html;字符集=UTF-8'.html
ServerName ctest.lock.com:443
#mod wsgi:webtest
WSGIScriptAlias/webtest/home/service/was/webtest/app.wsgi
WSGIDaemonProcess webtest进程=4个线程=4个显示名称=%{GROUP}
WSGIProcessGroup webtest
要求所有授权

https://ctest.lock.com/card
可以,但
https://ctest.lock.com/webwas
未找到404。如何设置?

将mod_wsgi内容与其他内容一起移动到第一个
VirtualHost
。将mod_wsgi内容与其他内容一起移动到第一个
VirtualHost