summaryrefslogtreecommitdiffstats
path: root/lib/apache2/patchwork.fastcgi.conf
blob: a739164db990d2fcdbda1ff1d7b6654b6e038689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
NameVirtualHost patchwork.example.com:80
<VirtualHost patchwork.example.com:80>
	DocumentRoot /srv/patchwork/htdocs/

	Alias /media/ /srv/patchwork/lib/python/django/contrib/admin/media/

	FastCGIExternalServer /srv/patchwork/htdocs/patchwork.fcgi -socket /srv/patchwork/var/fcgi.sock -pass-header Authorization

	RewriteEngine On
	RewriteCond %{REQUEST_URI} !^/(images|css|js|media)/.*
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule ^/(.*)$ /patchwork.fcgi/$1 [QSA,L]

	LogLevel warn
	ErrorLog /var/log/apache2/patchwork-error.log
	CustomLog /var/log/apache2/patchwork-acess.log combined
</VirtualHost>