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

From: <Adam_at_Gmail>
Date: Sat, 20 Mar 2010 23:22:16 -0000

Hi Amos,
Thanks for your reply
My question I should probably put it another way
let's say my website is http://www.example.com right?

in the defaultsite= directive do I need to put just the domain name i.e
example.com that should match the exact domain name that is requested by the
client or something else?

And the http_port should match the http_port that the backend web-server is
listening on, correct?

As for the

cache_peer, does the cache peer also refers to the backend "web-server"?
If you don't mind being a little a bit more specific please.

Thank you
Regards
Adam
----- Original Message -----
From: "Amos Jeffries" <squid3_at_treenet.co.nz>
To: <squid-users_at_squid-cache.org>
Sent: Saturday, March 20, 2010 10:35 PM
Subject: Re: [squid-users] Configuring a Basic Reverse Proxy (Website
Accelerator)

> 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 - 23:22:33 MDT

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