免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7840 | 回复: 0
打印 上一主题 下一主题

[proxy] Apache Traffic Server 3.0正式版,我很失望!! [复制链接]

论坛徽章:
0
1 [报告]
发表于 2011-08-18 09:29 |显示全部楼层
本帖最后由 yayu_myself 于 2011-08-18 09:34 编辑

回复 6# molecar


    呃。。正向代理很简单的。。只需要把record.conf中的
  1. CONFIG proxy.config.reverse_proxy.enabled INT 0
  2. CONFIG proxy.config.url_remap.remap_required INT 0
复制代码
其实好像只把remap设置为0就可以,TS支持同时反响和正向代理

另外,先看官方管理手册,有中文的,但是后面的不太全,结合英文看吧http://trafficserver.apache.org/docs/v2/admin/,FAQ提到了如下:
Can Traffic Server run in forward proxy and reverse proxy modes at the same time?

Yes. When you enable reverse proxy mode, Traffic Server remaps incoming requests according to the map rules in the remap.config file. All other requests that do not match a map rule are simply served in forward proxy mode.
If you want to run in reverse proxy only mode (wherein Traffic Server does not serve requests that fail to match a map rule), then you must set the configuration variable proxy.config.url_remap.remap_required to 1 in the records.config file.

How do I enable forward proxy mode

Forward proxy mode is not enabled out of the box for security reasons. When enabling any proxy on the internet, you want to make sure you observe pertinent security restrictions. Having an open proxy available to internet users is a bad thing. If you understand this and are sure you know what you are doing, in records.config:
# Set this variable to 1 if you want Traffic Server to serve
# requests only from origin servers listed in the mapping rules
# of the remap.config file. If a request does not match, then
# the browser will receive an error.
CONFIG proxy.config.url_remap.remap_required INT 0


还可以看官方wiki里面有一些东西。不过感觉还算比较乱,里面同样有FAQ:https://cwiki.apache.org/confluence/display/TS/FAQ

以及官方的社区:https://issues.apache.org/jira/secure/IssueNavigator.jspa
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP