>
> Hi all,
>
> I have been suggested this
>
>> http_port 80 81 #to make squid listen to the desired ports
>
> One per line.
>
>
> Do I have to do something like this?
>
> http_port 80
> acl all src 0.0.0.0/0.0.0.0
> always_direct allow all
> cache_peer ip1 parent 8080 0 no-query origin_server name=DS1
> cache_peer_access allow DS1
>
> http_port 81
> acl all src 0.0.0.0/0.0.0.0
> always_direct allow all
> cache_peer ip2 parent 8181 0 no-query origin_server name=DS2
> cache_peer_access allow DS2
>
>
>
> I dont know if this is the way to determine that all the incoming
> requests to port 80 will go to 1p1:8080 and the requests to port 81
> will go to ip2:8181. Is this the way to do it?
>
* always_direct will prevent the peers ever being used. Drop that from
your config.
* all ACL only needs defining once, and only if using Squid-2.
probably easier to understand: acl all src all
* still missing the ACL to do routing:
acl DS1_okay myport 80
acl DS2_okay myport 81
* cache_peer_access (did you read the link I gave. or did I omit it?)
cache_peer _access <peer-name> [allow|deny] [acl [acl ...]
I'd suggest:
cache_peer_access DS1 allow DS1_okay
cache_peer_access DS1 deny !DS1_okay
cache_peer_access DS2 allow DS2_okay
cache_peer_access DS2 deny !DS2_okay
Amos
Received on Wed Jul 23 2008 - 03:13:01 MDT
This archive was generated by hypermail 2.2.0 : Wed Jul 23 2008 - 12:00:05 MDT