Конфиг вирт хоста

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<VirtualHost *:83>
ServerName localhost
ServerAlias localhost
ServerAdmin webmaster@example.com
DocumentRoot /srv/http/django/morowka.optik.myvnc.com/www
Alias /static/ /srv/http/django/morowka.optik.myvnc.com/www/static/
WSGIProcessGroup moro
WSGIDaemonProcess moro user=http group=http threads=2 maximum-requests=1000
WSGIScriptAlias / /srv/http/django/morowka.optik.myvnc.com/www/django.wsgi
Alias "/media/" "/usr/lib/python2.6/site-packages/django/contrib/admin/media/"
<Location "/media/">
SetHandler None
</Location>
<Directory /srv/http/django/morowka.optik.myvnc.com/www/>
Order deny,allow
Allow from all
</Directory>
<Directory /srv/http/django/morowka.optik.myvnc.com/www/static>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>