VirtualHost 83 ServerName localhost ServerAlias localhost ServerAdmin

 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
33
34
35
<VirtualHost *:83>
ServerName localhost
ServerAlias localhost
ServerAdmin webmaster@example.com
CustomLog /var/log/apache2/domainl-access.log combined
ErrorLog /var/log/apache2/domain-error.log
# DocumentRoot /srv/http/django/morowka.optik.myvnc.com/morowka
Alias /static/ /srv/http/django/morowka.optik.myvnc.com/morowka/static/
Alias /media/ /usr/lib/python2.6/site-packages/django/contrib/admin/media/
# Пришлось все скопировать в папку сайта и заменить на:
# Alias /media/ /srv/http/django/morowka.optik.myvnc.com/morowka/media/
WSGIDaemonProcess moro user=http group=http threads=2 maximum-requests=1000
WSGIProcessGroup moro
WSGIScriptAlias / /srv/http/django/morowka.optik.myvnc.com/morowka/django.wsgi
# <Location "/media/">
# SetHandler None
# </Location>
<Directory /srv/http/django/morowka.optik.myvnc.com/morowka>
Order deny,allow
Allow from all
</Directory>
#<Directory /srv/http/django/morowka.optik.myvnc.com/morowka/static>
# Order deny,allow
# Allow from all
#</Directory>
</VirtualHost>