Hi

On my server I have multiple project working with different python
version. To manage those project I'm using vritualenvwrapper.

Project1 need Python 2.7.1 and Django.
To start standalone server I just have to execute those command:

$ workon django27 # activate virtual environment with Python 2.7.1
and  Django packages
$ cd ~/projects/Project1
$ python manage.py runserver

For Project2 I need Python 2.6.6 and Django
To start standalone server I just have to execute those command:

$ workon django26 # activate virtual environment with Python 2.6.6
and  Django packages
$ cd ~/projects/Project2
$ python manage.py runserver

Now I would like to install those projects on apache.

Can I do something like this ?

WSGIVirtualEnvBase /opt/python/virtualenv  # all virtual environment
are on this folder

WSGIScriptAlias /Project1 /var/www/Project1/django.wsgi

<Directory /var/www/Project1>
  WSGIVirtualEnv django27
</Directory>

WSGIScriptAlias /Project2 /var/www/Project2/django.wsgi

<Directory /var/www/Project6>
  WSGIVirtualEnv django26
</Directory>

Regards

-- 
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