From c561ebe710d6e6a43aa4afc6c2036a215378ce87 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 21 Aug 2008 09:38:06 +0800 Subject: Inital commit Signed-off-by: Jeremy Kerr --- lib/apache2/patchwork.fastcgi.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/apache2/patchwork.fastcgi.conf (limited to 'lib/apache2/patchwork.fastcgi.conf') diff --git a/lib/apache2/patchwork.fastcgi.conf b/lib/apache2/patchwork.fastcgi.conf new file mode 100644 index 0000000..78d8147 --- /dev/null +++ b/lib/apache2/patchwork.fastcgi.conf @@ -0,0 +1,17 @@ +NameVirtualHost 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 + + 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 + -- cgit v1.2.3