fbd21a9a1aa4d4ecac1abbe9dce0922b4d14d840
[redakcja.git] / redakcja.vhost.template
1 <VirtualHost *:80>
2     ServerName $DOMAIN
3     ServerAlias $DOMAIN_ALIASES
4     ServerAdmin $ADMIN_EMAIL
5
6     WSGIDaemonProcess $PROJECT_NAME user=$WSGI_USER group=$WSGI_USER processes=$WSGI_PROCESSES threads=$WSGI_THREADS display-name=%{GROUP}
7     WSGIProcessGroup $PROJECT_NAME
8
9     WSGIScriptAlias / $WSGI_TARGET
10     <Directory $WSGI_DIR>
11         Order allow,deny
12         allow from all
13     </Directory>
14
15     Alias /media $MEDIA_ROOT
16     <Directory $MEDIA_ROOT >
17         Options Indexes, FollowLinks
18         Order allow,deny
19         Allow from all
20     </Directory>
21
22     LogLevel warn
23     ErrorLog /var/log/apache2/$PROJECT_NAME/error.log
24     CustomLog /var/log/apache2/$PROJECT_NAME/access.log combined
25 </VirtualHost>