On Tue, Aug 18, 2009, Ben Donohue wrote:

> Any clues or doco on where to start first? I have an internal DNS server 
> so all squid should have to do is lookup the correct address and forward 
> to that.

You can do it a multitude of ways. The easiest way is this:

http_port 80 accel defaultsite=www.cacheboy.net vhost act-as-origin
visible_hostname mirror3.us.cacheboy.net

# Since all requests must go via a cache_peer, don't ever allow
# direct forwarding. Make sure your cache_peers (which are origin servers)
# don't allow forwarding (ie can act as proxies too!)
never_direct allow all

# allow requests from everyone
http_access allow all

cache_peer michelle.cacheboy.net parent 80 0 no-query originserver login=PASS 
name=www.cacheboy.net no-netdb-exchange no-digest
cache_peer_domain www.cacheboy.net www.cacheboy.net
cache_peer_domain www.cacheboy.net none


That says:

* port 80 is a http accelerator, with a default site listed, a virtual host and 
acts as a HTTP origin
* the visible hostname of the proxy is X
* don't ever go direct to the internet - ie, you must use a cache_peer to 
satisfy a request
* allow requests to everyone
* define a backend parent server which is an origin server; pass auth details 
to it; don't query it for cache digests, ICP, etc
* map "www.cacheboy.net" into it

> Or have I got something wrong here.

Nope. The documentation just sucks. :)




Adrian

> 
> Any pointers appreciated.
> 
> Thanks.
> Ben
> 
> 
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to