VirtualHost 80 WSGIScriptAlias var www django django wsgi Alias media

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<VirtualHost *:80>
WSGIScriptAlias / /var/www/django/django.wsgi
Alias /media/ /var/www/django/media/
<Directory /var/www/django/media/>
Order deny,allow
Allow from all
</Directory>
<Directory /var/www/django/django.wsgi>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>