Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.