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

时间:2017-05-30 00:34:36

标签: 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">
       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>

https://ctest.lock.com/card没问题,但https://ctest.lock.com/webwas未找到404。怎么设置?

0 个答案:

没有答案