Under the same subdomain, I need to set up several independent sites each running django, these sites are totally separate. Each site should be in its own subdirectory, and these subdirectories have to be password-protected.
for example:
subdomain.example.com/site1 subdomain.example.com/site2
I am using apache2 and have a virtual server entry for the subdomain. django is run using FastCGI.
basically, I do not know how to set this up. What do I put in to my <VirtualHost> entry for the subdomain? Usually, for a single django site under a subdomain I would put WSGIScriptAlias pointing to the python script that should be executed, but what do i do for multiple sites?
please help
thanks
konstantin
here is my configuration:
<VirtualHost *:12665> ServerName subdomain.example.com DocumentRoot /path WSGIScriptAliasMatch ^/([^/]+) /sites/$1/httpd/django.wsgi <DirectoryMatch ^/sites/[^/]+/httpd> Order deny,allow Allow from all </DirectoryMatch> </VirtualHost>