Merge branch 'master' of github.com:fnp/wolnelektury
[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 /static %(path)s/releases/current/static
22     <Directory %(path)s/releases/current/static>
23         Options Indexes
24         Order allow,deny
25         Allow from all
26     </Directory>
27
28     LogLevel warn
29     ErrorLog /var/log/apache2/error.log
30     CustomLog /var/log/apache2/access.log combined
31 </VirtualHost>