Re: [squid-users] Someone's using my cache?

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 13 Nov 2008 01:48:07 +0100

On ons, 2008-11-12 at 16:18 -0600, lists_at_grounded.net wrote:
> Any chance someone could give me a working config to get me started?
>
> -The server has 2GB of memory and 1TB of space which is can use. There is nothing else running on it, this is all it will do, be a reverse proxy.
>
> -1 public IP to a named based web server hosting a dozen sites.
>
> -Squid used as a proxy server for http/https at 192.168.1.35.
>
> -The web server/s are identical, at 192.168.1.40 and 192.168.1.92 on the lan, same segment as the squid is.
> I can either load balance between the two but since 192.168.1.92 is really just a backup and much slower, it would be best to use this one as a fail over.
>
> Not sure what other info is required?
>
> Mike

Basic setup:
http://wiki.squid-cache.org/SquidFaq/ReverseProxy#head-7fa129a6528d9a5c914f8dd5671668173e39e341

Load balancing:
http://wiki.squid-cache.org/SquidFaq/ReverseProxy#head-81d06e5a0d3a3ed4bdf7a7cb9077370a7b02bfaf

for failover, simply don't specify a load balancing method. For clarity
you can mark the preferred one with default but the order in squid.conf
does pretty much the same..

Cache:
see cache_dir, cache_mem and FAQ on memory usage.

cache_dir: http://www.squid-cache.org/Doc/config/cache_dir/
cache_mem: http://www.squid-cache.org/Doc/config/cache_mem/
How much memory do I need in my Squid server?
http://wiki.squid-cache.org/SquidFaq/SquidMemory#head-09818ad4cb8a1dfea1f51688c41bdf4b79a69991

There isn't very much documentation on the https support unfortunately,
but it's pretty much the same except for https_port (and corresponding
certificates) and the ssl option to cache_peer if the backend is using
https as well.

There is some https examples in the wiki
http://wiki.squid-cache.org/ConfigExamples/SslReverseProxyWithWildcardCertifiate
http://wiki.squid-cache.org/ConfigExamples/SquidAndRPCOverHttp
http://wiki.squid-cache.org/ConfigExamples/SquidAndOutlookWebAccess

Regards
Henrik

Received on Thu Nov 13 2008 - 00:48:14 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 13 2008 - 12:00:03 MST