Re: [squid-users] Configuring a Basic Reverse Proxy (Website Accelerator)

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 21 Mar 2010 11:35:12 +1300

Adam_at_Gmail wrote:
> Hi All,
>
> I have a question I just want to make sure that I understand this
> configuration.
> Assuming I am configuring just one backend webservers and one website:
>
> From this link:
> http://wiki.squid-cache.org/ConfigExamples/Reverse/BasicAccelerator
>
> Does this mean
> http_port 80 accel defaultsite=your.main.website.namehttp_port 80 (port
> of the back-end webserver)?Defaultsite= (should it be like this)
> defaultsite=www.mydomain.org or defaultsite=mydomain.org or
> defaultsite=the_name_of_the_folder_where_the_website_is_located?My next

It's just the domain name visitors will use to get the website.
It's only used to 'fix' broken client who fail to send a domain name in
their requests.
Which domain to use is up to you.

> question is for thiscache_peer ip.of.webserver parent 80 0 no-query
> originserver name=myAccelOk this is what I understoodExample:cache_peer
> 192.168.1.3 parent 80 0 no-query originserver name=myAccelbut what value
> will "myAccel" be holding for instance, the name of my website? or it's
> IP address what is it exactly?

It's a label. Only used in the squid.conf file to represent that peer.

> My final question isacl our_sites
> dstdomain your.main.website.name
> http_access allow our_sites
> cache_peer_access myAccel allow our_sites
> cache_peer_access myAccel deny allok maybe the first line should beacl
> our_sites dstdomain www.mydomain.org is this correct?And then the rest

Yes. A list of all the websites you are serving through this Squid to
that peer. Wildcard sub-domains by starting with a dot for example:
.example.com

> is straightforwardCan anyone help me please, I am a bit confused with
> thisAny help would be very much appreciated

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE8 or 3.0.STABLE25
   Current Beta Squid 3.1.0.18
Received on Sat Mar 20 2010 - 22:35:22 MDT

This archive was generated by hypermail 2.2.0 : Sun Mar 21 2010 - 12:00:05 MDT