Re: [squid-users] Accelerator Question

2006-08-31 Thread Henrik Nordstrom
tor 2006-08-31 klockan 13:39 +0200 skrev Michael Ackermann:
 Hi all,
 
 Related to this link 
 http://www.squid-cache.org/mail-archive/squid-users/200608/0075.html
 
 I tried to setup my reverse proxy but it don't work how I want.
 
 I use squid-2.6.STABLE3 with following config
 -snip-
 http_port 3128 vhost vport=80

Don't use vport. It's not what you want. vhost is sufficient. What you
should add is a defaultsite= marking your primary web site (what old
HTTP/1.0 clients not sending Host headers should get).

 cache_peer micack.mine.nu parent 80 0 no-query
 cache_peer micack1.mine.nu parent 80 0 no-query

You also need cache_peer_access/cache_peer_domain to select which
requests gets sent to which peer.
 /etc/hosts set up is correct.
 - snip -
 192.168.0.110 micack.mine.nu
 192.168.0.225 micack1.mine.nu

Note: You can use the IP addresses in squid.conf instead of specifying
them in /etc/hosts.

Regards
Henrik


signature.asc
Description: Detta är en digitalt signerad	meddelandedel


Re: [squid-users] Accelerator Question

2006-08-03 Thread Henrik Nordstrom
tor 2006-08-03 klockan 12:10 -0300 skrev Pablo García:

 Now, I changed to Squid 2.6 Stable 2, and since the configuration
 changes for this scenario I'm not sure how to configure it right.
 Is this the right configuration option ?
 http_port 80 vhost vport

http_port 80 defaultsite=your.main.website vhost

you most likely do not want vport.

and cache_peer + cache_peer_access/domain to route the requests to the
correct server, alternatively always_direct if you want to route
by /etc/hosts like before..

 or is this other ?
 http_port 80 transparent

nope, not for accelerators. This is for transparently intercepting
proxies.

Regards
Henrik


signature.asc
Description: Detta är en digitalt signerad	meddelandedel