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
Kind regards,
Andreas Müller
Received on Sun Jan 24 2010 - 11:27:29 MST
This archive was generated by hypermail 2.2.0 : Mon Jan 25 2010 - 12:00:04 MST