You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by "Zeller, Jan (ID)" <ja...@id.unibe.ch> on 2010/07/26 17:09:27 UTC
ProxyRemote ?
Dear list,
I need to know if there is a parametre like 'ProxyRemote' (http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote)
The reason is that I need to forward traffic to another http proxy which maintains an url filter list.
I already keep an eye on http://trafficserver.apache.org/docs/v2/admin/reverse.htm#RedirectingHTTPRequests
but I was not able to forward traffic to the other box.
filter.config seems not to work (http://www.mail-archive.com/users@trafficserver.apache.org/msg00166.html)
---
Jan
AW: ProxyRemote ?
Posted by "Zeller, Jan (ID)" <ja...@id.unibe.ch>.
ok thank you guys. Got it...
/etc/trafficserver/parent.config
dest_domain=. scheme=http parent="myotherproxy:myport"
/etc/trafficserver/records.config
proxy.config.http.parent_proxy_routing_enable = 1
Now all port 80 traffic entering trafficserver is redirected(?) to myotherproxy:myport
Great !
---
Jan
________________________________________
Von: Steve Jiang [sjiang@apache.org]
Gesendet: Montag, 26. Juli 2010 18:04
An: users@trafficserver.apache.org
Betreff: Re: ProxyRemote ?
Zeller, Jan (ID) wrote, on 7/26/10 8:53 AM:
> The 'map' thing should be sufficient and seems to be the right thing I need to have.
>
> "map/forward any given URL (port 80) to http://myotherproxy:81"
>
> How can I achieve this ? I tried "map / http://myotherproxy:81" but this one is ignored.
>
What type of request are you making, and can you clarify what you mean
by 'ignored'?
When using remap.config, TS will not send an absolute URI in the request
remapped target server, e.g.
GET /index.html HTTP/1.1
Where, if myotherproxy is configured as a forward proxy it will expect
requests of the form:
GET http://www.example.com/index.html HTTP/1.1
Configuring parent proxy tells TS that you want to send requests to
another forward proxy.
--Steve
Re: ProxyRemote ?
Posted by Steve Jiang <sj...@apache.org>.
Zeller, Jan (ID) wrote, on 7/26/10 8:53 AM:
> The 'map' thing should be sufficient and seems to be the right thing I need to have.
>
> "map/forward any given URL (port 80) to http://myotherproxy:81"
>
> How can I achieve this ? I tried "map / http://myotherproxy:81" but this one is ignored.
>
What type of request are you making, and can you clarify what you mean
by 'ignored'?
When using remap.config, TS will not send an absolute URI in the request
remapped target server, e.g.
GET /index.html HTTP/1.1
Where, if myotherproxy is configured as a forward proxy it will expect
requests of the form:
GET http://www.example.com/index.html HTTP/1.1
Configuring parent proxy tells TS that you want to send requests to
another forward proxy.
--Steve
RE: ProxyRemote ?
Posted by "Zeller, Jan (ID)" <ja...@id.unibe.ch>.
thank you Leif, thank you Steve for your answer.
> If it's the latter, it depends a little bit in how you have ATS
> configured. In the easiest setup, you can use remap.config to forward
> the request to appropriate destinations (or use "map /" to map
> everything).
> Now, I suspect what you are looking for is the parent proxy configs
> (http://trafficserver.apache.org/docs/v2/admin/hier.htm). Now, I don't
> know if anyone has tested this recently, so no promises if/how it
> works.
> Give it a shot though, and let us know how it works :). Caveat: ICP is
> known to be broken, we'll need to fix that.
>
> -- leif
The 'map' thing should be sufficient and seems to be the right thing I need to have.
"map/forward any given URL (port 80) to http://myotherproxy:81"
How can I achieve this ? I tried "map / http://myotherproxy:81" but this one is ignored.
The syntax is :
<map_type> <scheme>://<host>:<port>/<path_prefix> <scheme>://<host>:<port>/<path_prefix> fromURL toURL <tag_value> <filtering arguments>
---
Jan
Re: ProxyRemote ?
Posted by Leif Hedstrom <zw...@apache.org>.
On 07/26/2010 09:09 AM, Zeller, Jan (ID) wrote:
> Dear list,
>
> I need to know if there is a parametre like 'ProxyRemote' (http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote)
>
> The reason is that I need to forward traffic to another http proxy which maintains an url filter list.
> I already keep an eye on http://trafficserver.apache.org/docs/v2/admin/reverse.htm#RedirectingHTTPRequests
> but I was not able to forward traffic to the other box.
Not sure I understand. Is the problem that you want to do the filtering
using ATS, or that you can't forward requests from ATS to another box?
If it's the latter, it depends a little bit in how you have ATS
configured. In the easiest setup, you can use remap.config to forward
the request to appropriate destinations (or use "map /" to map everything).
Now, I suspect what you are looking for is the parent proxy configs
(http://trafficserver.apache.org/docs/v2/admin/hier.htm). Now, I don't
know if anyone has tested this recently, so no promises if/how it works.
Give it a shot though, and let us know how it works :). Caveat: ICP is
known to be broken, we'll need to fix that.
-- leif
Re: ProxyRemote ?
Posted by Steve Jiang <sj...@apache.org>.
Hi Jan,
It sounds like you are looking for the 'parent proxy' functionality in
TS. Please have a look at:
http://trafficserver.apache.org/docs/v2/admin/files.htm#parent.config
Best,
--Steve
Zeller, Jan (ID) wrote, on 7/26/10 8:09 AM:
> Dear list,
>
> I need to know if there is a parametre like 'ProxyRemote' (http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote)
>
> The reason is that I need to forward traffic to another http proxy which maintains an url filter list.
> I already keep an eye on http://trafficserver.apache.org/docs/v2/admin/reverse.htm#RedirectingHTTPRequests
> but I was not able to forward traffic to the other box.
>
> filter.config seems not to work (http://www.mail-archive.com/users@trafficserver.apache.org/msg00166.html)
>
> ---
>
> Jan