- 论坛徽章:
- 0
|
本帖最后由 yayu_myself 于 2011-08-18 09:34 编辑
回复 6# molecar
呃。。正向代理很简单的。。只需要把record.conf中的- CONFIG proxy.config.reverse_proxy.enabled INT 0
- 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 |
|