Hi,

  I'm trying to host multiple django applications under one Apache
VirtualHost. I try do this for ReviewBoard (Django application to code
review). I red http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi
but after lecture I'm confused. My VirtualHost configuration looks as
follow:


<VirtualHost 127.0.0.1>
        ServerName reviewboard.igk.intel.com
        DocumentRoot "/home/johny/Python/ReviewBoard/abc/htdocs"

        # Error handlers
        ErrorDocument 500 /errordocs/500.html

        WSGIDaemonProcess abc python-path=/home/johny/Python/sandbox/
lib/python2.7/site-packages
        WSGIDaemonProcess def python-path=/home/johny/Python/sandbox/
lib/python2.7/site-packages

        WSGIScriptAlias "/abc" "/home/johny/Python/ReviewBoard/abc/
htdocs/reviewboard.wsgi"
        WSGIScriptAlias "/def" "/home/johny/Python/ReviewBoard/def/
htdocs/reviewboard.wsgi"

        <Location "/abc">
                WSGIProcessGroup abc
        </Location>

        <Location "/abc">
                WSGIProcessGroup def
        </Location>

        <Directory "/home/johny/Python/ReviewBoard/abc/htdocs">
                AllowOverride All
                Order Allow,Deny
                Allow from all
        </Directory>

        <Directory "/home/johny/Python/ReviewBoard/def/htdocs">
                AllowOverride All
                Order Allow,Deny
                Allow from all
        </Directory>

        # Alias static media requests to filesystem
        Alias /abc/media "/home/johny/Python/ReviewBoard/abc/htdocs/
media"
        Alias /abc/errordocs "/home/johny/Python/ReviewBoard/abc/
htdocs/errordocs"

        # Alias static media requests to filesystem
        Alias /def/media "/home/johny/Python/ReviewBoard/def/htdocs/
media"
        Alias /def/errordocs "/home/johny/Python/ReviewBoard/def/
htdocs/errordocs"
</VirtualHost>

And this is default reviewboard.wsgi script:

import os
import sys

os.environ['DJANGO_SETTINGS_MODULE'] = "reviewboard.settings"
os.environ['PYTHON_EGG_CACHE'] = "/home/johny/Python/ReviewBoard/abc/
tmp/egg_cache"
os.environ['HOME'] = "/home/johny/Python/ReviewBoard/abc/data"

sys.path = ['/home/johny/Python/ReviewBoard/abc/conf'] + sys.path

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

Django version used by ReviewBoard is 1.2.3. For each application:

SITE_ID = 1
SITE_ROOT = '/abc/'
FORCE_SCRIPT_NAME = ''



SITE_ID = 1
SITE_ROOT = '/def/'
FORCE_SCRIPT_NAME = ''

What I do wrong?

Regards,

Jan

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to