Andreas Müller wrote:
Hello, I try so setup squid as reverse proxy for the following situation: 1. www.domain.tld:80 -> server:80 2. www.domain.tld:8080 -> server:8080 3. www.domain.tld/dir/:80 -> server:8080 1.+2. I'v solved: 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=cpa80 cache_peer 2.2.2.2 parent 8080 0 no-query originserver name=cpa8080 acl our_sites dstdomain www.domain.tld http_access allow our_sites http_access deny all acl port80 myport 80 acl port8080 myport 8080 cache_peer_access cpa80 allow port80 cache_peer_access cpa80 deny all cache_peer_access cpa8080 allow port8080 cache_peer_access cpa8080 deny all But I've no idea how to setup number 3. I think I need and "and" for the acl but I can't find. If I would have and "and" I could make 2 ACL's for port 80: acl port80_dir urlpath_regex ^/dir "AND" myport 80 acl port80 myport 80
1) /dir/:80 ----> folder "dir" filename ":80" 2) http://wiki.squid-cache.org/SquidFaq/SquidAcl#Common_Mistakes Amos -- Please be using Current Stable Squid 2.7.STABLE7 or 3.0.STABLE21 Current Beta Squid 3.1.0.15