Hi people,
question here. Basically my structure is that I wish to serve 3 different django-powered sites for 3 types of users:
- subdomain1.username.webfactional.com
- user 1 subdomain2.username.webfactional.com
- user 2 username.webfactional.com
- publicly accessible site
I created 3 separate projects. They share data models between them. (is this correct or should I use just 1 project). In webfaction CP, I linked the above to 1 django application instance.
In httpd.conf I put
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | MaxSpareThreads 3
MinSpareThreads 1
ServerLimit 1
SetEnvIf X-Forwarded-SSL on HTTPS=1
ThreadsPerChild 5
WSGIDaemonProcess django processes=5 python-path=/home/carrier24sg/webapps/django:/home/carrier24sg/webapps/django/lib/python2.6 threads=1
WSGIPythonPath /home/carrier24sg/webapps/django:/home/carrier24sg/webapps/django/lib/python2.6
NameVirtualHost *:37049
<VirtualHost *:37049>
WSGIScriptAlias / /home/username/webapps/django/myproject.wsgi
ServerName username.webfactional.com
ServerAlias username.webfactional.com
</VirtualHost>
<VirtualHost *:37049>
WSGIScriptAlias / /home/carrier24sg/webapps/project/user1.wsgi
ServerAlias user1.username.webfactional.com
</VirtualHost>
<VirtualHost *:37049>
WSGIScriptAlias / /home/username/webapps/project/user2.wsgi
ServerAlias user2.username.webfactional.com
</VirtualHost>
|
I can reach my username.webfactional.com but not the subdomains. Any steps I missed?
Qn2: How should I serve the static media for each site? Can I serve them through just one static media application that is linked to username.username.webfactional.com ?
asked
Mar 13 '11 at 22:44
amateur
11●1●13