DEV Community

Roy
Roy

Posted on

反向代理替换response body中的字符串

之前客户有个用ip直接访问蓝鲸的需求,如果用反向代理的话,会遇到response body 中内嵌的URL仍然是域名的情况。今天看到nginx有个模块可以解决这个问题
https://github.com/yaoweibin/ngx_http_substitutions_filter_module

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay