试图改变一个页面的内容我通过一个nginx服务器反向代理。 我试过用nginx_substitutions_filter没有运气。
有谁知道这是否可能,以及如何下降。 例如 – 想要用http://lotsoffoos.com上的barreplacefoo所有实例
location / { proxy_set_header X-Real-IP $remote_addr; proxy_pass https://lotsoffoos.com; proxy_read_timeout 90; subs_filter_types text/html text/css text/xml; subs_filter “foo” “bar" gir; }