Re: Redirection question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 09 Feb 2000 01:26:40 +0100

Richard van Denzel wrote:

> In our old proxy server (NS 3.5) we made the follwoing redirections:
>
> http://www.interaccess.nl:81.* should get a DIRECT Connection

Thats a always_direct in squid.conf.

> http://www.interaccess.nl/chat/* should use Proxy server 192.168.80.2:81

Proxy servers must be configured with cache_peer in squid.conf.

acl ia dstdomain www.interaccess.nl
acl 81 port 81
acl char urlpath_regex ^/chat/

always_direct allow ia 81

cache_peer 192.168.80.2 parent 81 0 no-query
cache_peer_access 192.168.80.2 allow ia chat
never_direct allow ia chat

If you have other peers, then you also need cache_peer_access deny lines
to stop them from being considered
cache_peer_access your.other.peer deny ia chat

Redirection in Squid is only if you want to rewrite the URL of the
request, not if you want to forward it to another proxy server.

--
Henrik Nordstrom
Squid hacker
Received on Tue Feb 08 2000 - 17:35:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:01 MST