Search squid archive

Re: Accel mode SSL + apache on same box + 1 backend server

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

 



fre 2006-04-14 klockan 21:06 +0200 skrev LIMA David:
> Hi list, 
> 
> I'm trying to get this config working on squid Version 2.5.STABLE9, but without success
> 
> 	  ---------------- https://www.xx.com---------------- 
> NET ==> |SQUID on ip:443 | ==>     | apache on 127.0.0.1:80| (vhost,auth)
> 	  ----------------	      ------------------------
> 				  https://www.xxx.com/yy-----------------	-----   
> 				    ==>     |other box on ip2:80/yy (single host)|
> 						------------------------------------
> 
> When I get https://www.xxx.com I want to be redirected to my apache (same box as SQUID) on 127.0.0.1:80, when I get https://www.xxx.com/yyy, I want to be redirected to another box with ip2:80.


I would do this with cache_peer + cache_peer_access.

httpd_accel_host www.xx.com
httpd_accel_with_proxy on
httpd_accel_single_host off
httpd_accel_uses_host_header on

cache_peer 127.0.0.1 parent 80 0 no-query
cache_peer otherbox parent 80 0 no-query

acl yy urlpath_regex ^/yy
acl www.xxx.com dstdomain www.xxx.com
never_direct allow all
cache_peer_access 127.0.0.1 deny yy
cache_peer_access 127.0.0.1 allow all
cache_peer_access otherbox allow yy
cache_peer_access otherbox deny all


Or in Squid-3, or 2.5 with the rproxy patch

https_port ip:443 cert=... key=... defaultsite=www.xx.com vhost

cache_peer 127.0.0.1 parent 80 0 no-query originserver
etc as above..

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