Re: [squid-users] Problem using different ports

From: Chris Robertson <crobertson_at_gci.net>
Date: Thu, 14 Jan 2010 13:17:54 -0900

Andreas Müller wrote:
> Hello,
>
> I have a little problem using 2 ports for an accel.
>
> Port 80 should be send to cache peer on port 80 (originalserver)
> Port 8080 should be send to cache peer on port 8080 (originalserver)
>
> Here's the config I used:
>
> --------------------------------------------------
> visible_hostname www.domain.tld
>
> http_port 1.1.1.1:80 accel defaultsite=www.domain.tld
> http_port 1.1.1.1:8080 accel defaultsite=www.domain.tld
>
> cache_peer 2.2.2.2 parent 80 0 no-query
> originserver name=myAccel1
> cache_peer 2.2.2.2 parent 8080 0 no-query
> originserver name=myAccel2
>
> acl our_sites dstdomain www.domain.tld
> acl our_sites dstdomain images.domain.tld
> acl port80 port 80
> acl port8080 port 8080
>

Replace the two "port" acls with "myport" acls.

acl port80 myport 80
acl port8080 myport 8080

> http_access allow our_sites
> http_access deny all
>
> cache_peer_access myAccel1 allow port80
> cache_peer_access myAccel1 deny all
>
> cache_peer_access myAccel2 allow port8080
> cache_peer_access myAccel2 deny all
> --------------------------------------------------
>
> At the moment alle requests to port 8080 are send to cache paar on port 80.
>
> Any idea?
>
> Kind regards,
>
> Andreas Müller
>

Chris
Received on Thu Jan 14 2010 - 22:18:11 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 15 2010 - 12:00:02 MST