我有以下 httpd.conf。根据不同的域,它应该将请求路由到适当的条目,该条目显示基于类似代码库的不同站点。
问题在于,每隔几个请求它就会在站点 1 和站点 2 之间切换:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.mysite1.com
ServerAlias mysite1.com
DocumentRoot /var/www/html/mysitedjango
WSGIScriptAlias / /var/www/html/mysitedjango/mysite1/mysite1_wsgi.py
</VirtualHost>
<VirtualHost *:80>
ServerName www.mysite2.com
ServerAlias mysite2.com
DocumentRoot /var/www/html/mysitedjango
WSGIScriptAlias / /var/www/html/mysitedjango/mysite1/mysite2_wsgi.py
</VirtualHost>
Alias /static/ /var/www/html/mysitedjango/shared/static/
<Directory /var/www/html/mysitedjango/shared/static/>
Order deny,allow
Allow from all
</Directory>
WSGIPythonPath /var/www/html/mysitedjango
<Directory /var/www/html/mysitedjango>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
我能做些什么来阻止这种混乱的发生?