68c3f487e4f53d0218c0fb14c3a9dce5ed1969fe
[turniej.git] / turniej.vhost.template
1 <VirtualHost *:80>
2     ServerName "%(server_name)s"
3     ServerAdmin "%(server_admin)s"
4
5     WSGIDaemonProcess %(project_name)s user=%(user)s group=%(user)s processes=2 threads=15 display-name=%%{GROUP} python-path=%(site_packages)s
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/static
22     <Directory %(path)s/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)s
30     CustomLog /var/log/apache2/%(access_log)s combined
31 </VirtualHost>