Avatar

rasgB

rasg@alien.top
Joined
0 posts • 1 comments
Direct message

i have something similar with another service.

  1. local DNS (dnsmasq) to redirect requests (officialservice.com -> localservice.local)
  2. localservice.local is my apache proxy setting headers and opening all http requests to replace the links inside the page

quick example

ProxyHTMLEnable     on

[...]

ProxyHTMLURLMap     /aaa    /bbb/ccc

[...]

AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE application/x-javascript
Substitute 's|/service/aaa/|/service/bbb/|nq' Substitute 's|/domain/res/|/anotherdomain/res/|nq'
permalink
report
reply