Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 具有django的多个子域_Python_Django_Apache_Wsgi_Httpd.conf - Fatal编程技术网

Python 具有django的多个子域

Python 具有django的多个子域,python,django,apache,wsgi,httpd.conf,Python,Django,Apache,Wsgi,Httpd.conf,我正在尝试在一个Web服务器上运行两个应用程序,使用Django+Apache,分别位于signal.server.com和noise.server.com 目前,两个URL都指向singal.server.com 我一直在改变选择,但都没有用。这是我的server.com虚拟主机,运行良好 WSGIPythonPath/var/www/html/d\u信号 WSGISocketPrefix运行/wsgi 服务器管理员hello@mail.server.com 服务器名www.server.co

我正在尝试在一个Web服务器上运行两个应用程序,使用Django+Apache,分别位于
signal.server.com
noise.server.com

目前,两个URL都指向
singal.server.com

我一直在改变选择,但都没有用。这是我的server.com虚拟主机,运行良好

WSGIPythonPath/var/www/html/d\u信号
WSGISocketPrefix运行/wsgi
服务器管理员hello@mail.server.com
服务器名www.server.com
DocumentRoot/var/www/html
选项索引跟随符号链接
允许超越所有
ErrorLog/var/log/httpd/server.error.log
CustomLog/var/log/httpd/access.log组合
DirectoryIndex.php index.pl index.cgi index.html index.xhtml index.htm
singal.server.com的虚拟配置


服务器管理员hello@server.com
ServerName signal.server.com
ServerAlias signal.server.com
DocumentRoot/var/www/html/d_信号/d_信号
WSGIScriptAlias//var/www/html/d_-signal/d_-signal/wsgi.py
WSGIDaemonProcess signal.server.com python home=/var/www/html/d_signal/signal_env socket user=apache
WSGIProcessGroup signal.server.com
Alias/static/var/www/html/d_signal/static
#要求所有授权
允许超越所有
#要求所有授权
选项索引跟随符号链接
#要求所有授权
以及noise.server.com的虚拟配置


服务器管理员hello@server.com
ServerName noise.server.com
ServerAlias noise.server.com
DocumentRoot/var/www/html/d_信号/噪声
WSGIScriptAlias//var/www/html/d_signal/d_signal/wsgi_noise.py
WSGIDaemonProcess noise.server.com python home=/var/www/html/d_signal/noise_env socket user=apache
WSGIProcessGroup noise.server.com
Alias/static/var/www/html/d_signal/static
#要求所有授权
允许超越所有
#要求所有授权
选项索引跟随符号链接
#要求所有授权

如果我访问
http://noise.server.com/noise/
然后我进入了我想看的应用程序,但我宁愿只看
http://noise.server.com
工作

我的配置是一个Django项目,有两个应用程序


这里缺少什么?

配置正确。原来我的问题出在我的设置文件中,该文件仍将noise.server.com指向主应用程序


仔细检查您的设置文件。

“然后我进入我想要查看的应用程序”。到底是什么问题?@dirkgroten我不想添加路径。这些单独的django项目有自己的url配置吗?还是说一个django项目有两个应用程序?这是一个django项目有两个应用程序。