django-revproxy icon indicating copy to clipboard operation
django-revproxy copied to clipboard

Absolute prefix - how?

Open martyzz1 opened this issue 9 years ago • 0 comments

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.

  1. set a meta header for canonical content e.g.
  2. prepend all relative links/paths with '/blog/'
  3. 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?)

martyzz1 avatar Jan 07 '16 10:01 martyzz1