我已经将我的几个项目部署到我的新服务器上。似乎正在发生的事情是我可以很好地查看一个项目,但是一旦我进入下一个项目,前一个项目的设置仍在使用中。
例如,jacobvalenta.net 和 dev.pawndaddy.org 都是服务器上的项目,在两者之间切换可能会导致设置混淆。
SGIPythonPath /home/projects/pawndaddy:/home/projects/jacobvalenta:/home/projects/sailcast:/home/projects/tryfecta:/home/projects/midiscribe
NameVirtualHost *:80
<VirtualHost *:80>
ServerName jacobvalenta.net
ServerAlias *.jacobvalenta.net
DocumentRoot /home/projects/jacobvalenta
WSGIScriptAlias / /home/projects/jacobvalenta/jacobvalenta/wsgi.py
<Directory /home/projects/jacobvalenta/jacobvalenta>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName sailcast.org
ServerAlias *.sailcast.org
DocumentRoot /home/projects/sailcast
WSGIScriptAlias / /home/projects/sailcast/sailcast/wsgi.py
<Directory /home/projects/sailcast/sailcast>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName pawndaddy.org
ServerAlias *.pawndaddy.org
DocumentRoot /home/projects/pawndaddy/
WSGIScriptAlias / /home/projects/pawndaddy/pawndaddy/wsgi.py
<Directory /home/projects/pawndaddy/pawndaddy>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
</VirtualHost>