在同一台服务器上的PHP网站我现在有一个Django站点工作cinepass.com.ec,我想一个额外的PHP站点部署到同一台服务器mobile.cinepass.com.ec部署Django的网站,并与Apache和mod_wsgi的
我现在的httpd.conf(从DjangoFoo):
<Directory "/home/ec2-user/cinepass/media">
Order deny,allow
Allow from all
</Directory>
<Directory "/home/ec2-user/cinepass/cinepass">
AllowOverride All
Order deny,allow
Allow from all
</Directory>
Alias /media/ /home/ec2-user/cinepass/media/
ServerAdmin [email protected]
ErrorLog "logs/cinepass.com-error_log"
CustomLog "logs/cinepass.com-access_log" common
# mod_wsgi configuration is here
# we are running as user/group 'deamon', if you don't have those you need to change or create.
WSGIDaemonProcess cinepass python-path=/home/ec2-user/cinepass:/home/ec2-user/cinepass/venv/lib/python2.6/site-packages user=daemon group=daemon processes=2 threads=25
WSGIProcessGroup cinepass
# this is our WSGI file.
WSGIScriptAlias//home/ec2-user/cinepass/cinepass/wsgi.py
我现在wsgi.py:
import os, sys
sys.path.append('/home/')
sys.path.append('/home/ec2-user/cinepass/')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cinepass.settings_production.py")
os.environ['PYTHON_EGG_CACHE'] = '/tmp'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
我将如何编辑我的Apache配置,这样我还可以在mobile.cinepass.com.ec运行PHP的网站?
这个问题可能会在这里确定,但会在服务器上更好 – JeffS
Gotcha @JeffS,感谢提示,如果我没有得到回应我会在那里发布 – edu222