31 okt 2008 kl. 16.43 skrev ilyail3:
>
> hello people, Is there a way to host several django projects under a
> single virtual host?
> I know this is possible with mod_php with wildcards as server alias
>
> and later map urls to dirs using mod_rewrite
>
> <VirtualHost *>
> DocumentRoot /var/www
> ServerName www.projects
> ServerAlias *.projects
> RewriteEngine on
> RewriteCond %{HTTP_HOST} !^www.* [NC]
> RewriteCond %{HTTP_HOST} ^([^\.]+)\.projects
> RewriteCond /var/www/%1 -d
> RewriteRule ^(.*) /%1/$1 [L]
> </VirtualHost>
>
> But is it possible to run django projects from a directory in a
> similar way.
>
> Sorry if I'm asking a question someone have asked before , couldn't
> find anything on this topic
Are you using mod_wsgi, mod_python or what?
If you're using mod_wsgi: From what I gather, running multiple django
projects under the same VirtualHost currently has things to deal with
to get it working. (See
http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
-- search for "Note that Django expects").
/Håkan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---