django-revproxy
django-revproxy copied to clipboard
Absolute prefix - how?
Hi, I've been trying to find a simple solution to use revproxy to proxy our blog (http://blog.example.com) onto a subdirectory of our django app. I need to do 2 things to make it work.
- set a meta header for canonical content e.g.
- prepend all relative links/paths with '/blog/'
- revproxy all requests to /blog to blog.example.com
From research I think 1 & 2 can be done using diazo. (completely new to me). 1) using a xslt rule
but 2) seems to be achievable by using http://docs.diazo.org/en/latest/compiler.html#absolute-prefix But I just can't work out how to tie this together top django-revproxy.
Is this supported? or do I need to use my own transform mechanism (beautiful soup etc?)