[squid-users] URL Rewrite

From: howard chen <howachen_at_gmail.com>
Date: Wed, 4 Mar 2009 00:25:27 +0800

Hi

Currently I am using dstdomain/cache_peer to rewrite url request from
client to backend apache (so squid act as a reverse proxy)
========================

e.g.

acl dstdomain_site dstdomain .example.com

cache_peer 192.168.11.123 parent 80 0 no-query
originserver round-robin login=PASS weight=1
cache_peer_access 192.168.11.123 allow dstdomain_site
cache_peer_access 192.168.11.123 deny all
========================

This require my backend apache has a virtual host listening for .example.com

....But how can I manually force rewrite an URL from user, even my
backend apache is not listening example.com?

e.g.

.example.com => .google.com

I remember this can easily done this using apache mod_rewrite
(mod_proxy) but is it possible to be done in squid?

Thanks.
Received on Tue Mar 03 2009 - 16:25:42 MST

This archive was generated by hypermail 2.2.0 : Wed Mar 04 2009 - 12:00:02 MST