Inital commit
[patchwork] / lib / apache2 / patchwork.fastcgi.conf
1 NameVirtualHost patchwork.example.com:80
2 <VirtualHost patchwork.example.com:80>
3         DocumentRoot /srv/patchwork/htdocs/
4
5         Alias /media/ /srv/patchwork/lib/python/django/contrib/admin/media/
6
7         FastCGIExternalServer /srv/patchwork/htdocs/patchwork.fcgi -socket /srv/patchwork/var/fcgi.sock
8
9         RewriteEngine On
10         RewriteCond %{REQUEST_URI} !^/(images|css|js|media)/.*
11         RewriteCond %{REQUEST_FILENAME} !-f
12         RewriteRule ^/(.*)$ /patchwork.fcgi/$1 [QSA,L]
13
14         LogLevel warn
15         ErrorLog /var/log/apache2/patchwork-error.log
16         CustomLog /var/log/apache2/patchwork-acess.log combined
17 </VirtualHost>