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