2

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?

Adam Hobson
  • 121
  • 1

1 Answers1

1

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

Martin M
  • 578
  • 1
  • 3
  • 7