有什么方法可以沿站点cgi模式站点(bugzilla)托管django项目

问题描述 投票:1回答:1

我试图在以前托管django项目的apache2服务器上托管bugzilla。我想同时访问两个网站作为子域有什么办法可以]

我的配置文件是:

000-default.conf:

<VirtualHost *:80>
        ServerName health-diagnosis.com
        ServerAlias health-diagnosis.com
        ServerAdmin [email protected]
        DocumentRoot /var/www/html
        Alias /static /var/www/html/webproject/static
    <Directory /var/www/html/webproject/static>
        Require all granted
    </Directory>
    <Directory /var/www/html/webproject/webproject> 
        <Files wsgi.py>
            Require all granted
        </Files>
    </Directory>
    WSGIDaemonProcess webproject python-path=/var/www/html/webproject python-home=/var/www/html/webproject/myvenv
    WSGIProcessGroup webproject
    WSGIScriptAlias / /var/www/html/webproject/webproject/wsgi.py
    ErrorLog /var/www/logs/error.log
    CustomLog /var/www/logs/custom.log combined

</VirtualHost>

bugzilla.conf:

ServerName localhost
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +ExecCGI
DirectoryIndex index.cgi index.html
AllowOverride All
</Directory>
python apache cgi django-wsgi
1个回答
0
投票

我发现我必须为每个应用设置不同的ServerNameServerAlias不同

© www.soinside.com 2019 - 2024. All rights reserved.