Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploy a Django site and a PHP site on the same server with Apache and mod_wsgi
    primarykey
    data
    text
    <p>I currently have a Django site working at <strong>cinepass.com.ec</strong> , I would like to deploy an additional PHP site to the same server at <strong>mobile.cinepass.com.ec</strong></p> <p>My current <strong>httpd.conf</strong> (from <a href="http://www.djangofoo.com/17/django-mod_wsgi-deploy-exampl" rel="nofollow">DjangoFoo</a>) :</p> <pre><code>&lt;Directory "/home/ec2-user/cinepass/media"&gt; Order deny,allow Allow from all &lt;/Directory&gt; &lt;Directory "/home/ec2-user/cinepass/cinepass"&gt; AllowOverride All Order deny,allow Allow from all &lt;/Directory&gt; Alias /media/ /home/ec2-user/cinepass/media/ ServerAdmin smansfield@palapa.com.ec 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 </code></pre> <p>My current <strong>wsgi.py</strong> :</p> <pre><code>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() </code></pre> <p>How would I edit my Apache configuration so that I can also run a php site at <strong>mobile.cinepass.com.ec</strong>?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload