反正代理的内容过滤变换
2010年3月20日
| 标签: mod_proxy_html, mod_sed, mod_substitute, reverse proxy, 反向代理
Apache的mod_proxy可以支持灵活的反向代理设置,但它并不支持对代理网页内容的过滤。如果所代理网站的网页内容存在需要变换的绝对地址,单独使用mod_proxy就有问题。
要对代理网站的网页内容做处理变换,需要使用其它模块配合。mod_proxy_html, mod_sed及mod_substitute都可以,要根据自己的实际情况使用。
mod_proxy_html可以对html页面内容做link地址的变换处理。mod_sed及mod_substitute可以对内容做字符串的代替,支持正则规则。
mod_substitute在Apache 2.2.7后支持,mod_sed在Apache 2.3中支持,在2.2中可以自己编译安装。mod_proxy_html也是需要自己编译安装。
相关文章:
发表评论
| Trackback
