diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-04-06 10:00:13 +0100 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-04-06 10:00:13 +0100 |
commit | 4609689f44b4e0b1f95b7fdf096d3356241c271a (patch) | |
tree | 6c433b587961a704958c7faa618ed4ebf52b27ea | |
parent | d398476759740c58d70ac9fafe86d43dda521b39 (diff) |
Fix proxying of Tilma json
-rw-r--r-- | conf/httpd.conf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/conf/httpd.conf b/conf/httpd.conf index 0a8323e69..d0cb89ebb 100644 --- a/conf/httpd.conf +++ b/conf/httpd.conf @@ -91,7 +91,10 @@ RewriteRule ^/alerts/?$ /alert [R=permanent,L] RewriteRule ^/json/problems/new$ /json.cgi?type=new_problems [QSA,L] RewriteRule ^/json/problems/fixed$ /json.cgi?type=fixed_problems [QSA,L] -ProxyPass /tilma/ http://tilma.mysociety.org/ +# Proxy tilma so that our js code can make calls on the originating server. Use +# a RewriteRule rather than ProxyPass so that Apache's processing order is more +# predictable. ProxyPassReverse is not affected by this. +RewriteRule /tilma/(.*) http://tilma.mysociety.org/$1 [P,L] ProxyPassReverse /tilma/ http://tilma.mysociety.org/ # S. Cambs |