Of course there is :), for the VirtualHost *, means everything, instead use names like projecta, projectb, etc...if that doesn't make sense then the best thing to do prior to messing with your settings is to read the documentation from apache on VirtualHost.
--neuro On Fri, Oct 31, 2008 at 08:43:23AM -0700, ilyail3 wrote: > > 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 > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---