I'm attempting to setup a django development server using a sandbox approach. The specific technologies in place are apache2, mod_wsgi and django.

I'd like to use subdomains formatted as: {project}-{user}.domain.com.

I'd like that subdomain to point here: /home/{user}/{project}/application/django.wsgi.

Is this possible to setup via Virtual Hosts to work automatically, and if so, what would such a Virtual Host file look like?

link|improve this question
feedback

1 Answer

Yes, you can use mod_rewrite to add %{SERVERNAME} to the path to django.wsgi.

Have a look at this excellent document: http://httpd.apache.org/docs/2.0/vhosts/mass.html#simple.rewrite

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.