diff options
Diffstat (limited to 'lib/apache2/patchwork.fastcgi.conf')
-rw-r--r-- | lib/apache2/patchwork.fastcgi.conf | 17 |
1 files changed, 17 insertions, 0 deletions
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 +<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 + + 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> |