From 6b50ce97a104e0e49822d2ded2653295816dae61 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 22 Feb 2012 22:04:41 +0530 Subject: [PATCH] better apache configuration --- etc/apache2/vhost.conf.in | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/etc/apache2/vhost.conf.in b/etc/apache2/vhost.conf.in index 66abe8ed..c9ca4fe3 100644 --- a/etc/apache2/vhost.conf.in +++ b/etc/apache2/vhost.conf.in @@ -17,20 +17,23 @@ Order deny,allow Allow from all + ProxyPass /static ! + ProxyPass /favicon.ico ! + ProxyPass /robots.txt ! + ProxyPass /admin/media ! + ProxyPass /data ! + ProxyPass /.bzr ! + Alias /.bzr __PREFIX__/.bzr Alias /static __PREFIX__/static Alias /favicon.ico __PREFIX__/static/favicon.ico Alias /data __PREFIX__/data Alias /admin/media __PREFIX__/src/django/django/contrib/admin/media - Alias /static/js/jquery.js __PREFIX__/src/django/django/contrib/admin/media/js/jquery.min.js - RewriteEngine on - RewriteCond %{REQUEST_URI} !^/.bzr - RewriteCond %{REQUEST_URI} !^/static - RewriteCond %{REQUEST_URI} !^/data - RewriteCond %{REQUEST_URI} !^/admin/media - RewriteRule ^/(.*) http://127.0.0.1:2620/$1 [P] + ProxyPreserveHost On + ProxyPass / http://127.0.0.1:2620/ + ProxyPassReverse / http://127.0.0.1:2620/ ServerSignature Off