Re: [squid-users] Help with accelerated site

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 25 Mar 2010 01:01:28 +0000

On Wed, 24 Mar 2010 19:48:27 -0400, Ron Wheeler
<rwheeler_at_artifact-software.com> wrote:
> What is squid proxying?
> Usually the normal behaviour is exactly what you are getting since squid

> normally proxies Apache on 80.
> Browser ==> Squid on 80==>proxied to Apache on port 81.
>
>
> If Squid is not proxying Apache, then it looks like you have Apache
> running on 80.
>
> If you are trying to redirect port 80 to another program that is not
> Apache, then you need to get Apache off port 80.
> You can not have 2 programs listening to port 80.
>
> If Apache is running and owns port 80, Squid will not start.
>
> If this is the case, You likely have errors in the logs to this effect.
>
> Shut down Apache and and restart Squid.
>
> Try to start Apache and now it should howl with anger (or log in anger)
> at not getting port 80.
>
>
> Ron
>
> Adam_at_Gmail wrote:
>> Hello All,
>>
>> I have followed this configuration, but when I try and access the
>> website from outside my network
>> All I get is the default page of the apache on the machine where the
>> Squid proxy is installed
>>
>> Here is the link:
>>
>> http://wiki.squid-cache.org/ConfigExamples/Reverse/BasicAccelerator
>>
>> here is the configuration I followed
>>
>> http_port 80 accel defaultsite=your.main.website.name(changed my port
>> to 81 my backend server listens on port 81)I havehttp_port 81 accel
>> defaultsite=www.my.website.org vhostand then used thiscache_peer
>> ip.of.webserver parent 80 0 no-query originserver
>> name=myAccelcache_peer 192.168.1.5 parent 81 0 no query originserver
>> name=myAccel(myAccel I have put a name)and then acl our_sites
>> dstdomain my.website.org
>> http_access allow our_sites
>> cache_peer_access myAccel allow our_sites
>> cache_peer_access myAccel deny all Anybody with any suggestions
>> please?Any help would be appreciated thank youRegardsAdam
>>

Sorry, took me a while to un-mangle that original email text.

You are missing the "vhost" option on https_port 80. All traffic Squid
receives on port 80 will go to Apache's default virtual host.

Amos
Received on Thu Mar 25 2010 - 01:01:33 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 25 2010 - 12:00:07 MDT