Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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}

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?

share|improve this question

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

Have a look at this excellent document:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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