doodle change
[wolnelektury.git] / wolnelektury.vhost.template
1 <VirtualHost *:80>
2     ServerName %(project_name)s.example.com
3     ServerAdmin admin@example.com
4
5     WSGIDaemonProcess %(project_name)s user=%(user)s group=%(user)s processes=2 threads=15 display-name=%%{GROUP} python-path=%(path)s/lib/python2.5/site-packages
6     WSGIProcessGroup %(project_name)s
7
8     WSGIScriptAlias / %(path)s/%(project_name)s.wsgi
9     <Directory %(path)s>
10         Order allow,deny
11         allow from all
12     </Directory>
13
14     Alias /media %(path)s/media
15     <Directory %(path)s/media>
16         Options Indexes
17         Order allow,deny
18         Allow from all
19     </Directory>
20         
21     Alias /admin-media %(path)s/admin-media
22     <Directory %(path)s/admin-media>
23         Options Indexes
24         Order allow,deny
25         Allow from all
26     </Directory>
27
28     Alias /static %(path)s/releases/current/%(project_name)s/static
29     <Directory %(path)s/releases/current/%(project_name)s/static>
30         Options Indexes
31         Order allow,deny
32         Allow from all
33     </Directory>
34
35     LogLevel warn
36     ErrorLog /var/log/apache2/error.log
37     CustomLog /var/log/apache2/access.log combined
38 </VirtualHost>