Search squid archive

Re: Muliple ports on single web backend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tor 2007-06-28 klockan 12:55 -0500 skrev Jason Hitt:
>  Got a server running multiple websites off multiple ports. Currently
> squid is running one site on one port but need to map port x from
> backend to port y on squid but not seeing how. Read the reverse proxy
> faq and using cache_peer_domain or cache_peer_access to control this
> makes no sense to me, can someone explain it?  Thanks 

See the myport acl.

http_port 80 urlgroup=1 vhost
cache_peer backend1 parent 80 0 originserver no-query
acl port80 myport 80
cache_peer_access backend1 allow port80

http_port 81 urlgroup=2 vhost
acl port81 myport 81
cache_peer backend2 parent 80 0 originserver no-query
cache_peer_access backend2 allow port81


the reason I use urlgroup above is to avoid cache pollution between the
two. If you instead use the port or dstdomain acls then this is not
needed..

Regards
Henrik

Attachment: signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux