envoyproxy/envoy

URL Rewriting inside the response body

Open

#21,403 建立於 2022年5月23日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)C++ (5,373 fork)batch import
area/http_filterenhancementhelp wanted

倉庫指標

Star
 (27,997 star)
PR 合併指標
 (平均合併 8天) (30 天內合併 378 個 PR)

描述

Was attempting to see if a reverse proxy configuration with Envoy can ensure URL rewriting inside the response body.

Use case in question would be that a website exists inside a corp network but needs to be exposed to internet via a reverse proxy. If the website hardcodes links to other resources, the browser accessing from internet will not be able to fetch the content that is located internally. If reverse proxy is able to parse the response content and translate hardcoded links to internet facing endpoints, browser would be able to render the website as needed.

Nginx solves this with module ngx_http_sub_module and Apache does it with mod_proxy_html. Not sure what is the right approach to take with Envoy. If not supported yet, is it in pipeline to build such feature?

貢獻者指南