howard chen wrote:
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?
See the "forceddomain" argument to cache_peer. http://www.squid-cache.org/Doc/config/cache_peer/
Thanks.
Chris