Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute prefix - how? #60

Open
martyzz1 opened this issue Jan 7, 2016 · 0 comments
Open

Absolute prefix - how? #60

martyzz1 opened this issue Jan 7, 2016 · 0 comments
Labels

Comments

@martyzz1
Copy link

martyzz1 commented Jan 7, 2016

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?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants