> Most clients these days will do so regardless of their version.
> defaultsite is completely optional, in your case if you omit it broken
> clients will get the squid "invalid request" error page instead of tomcat
> front page
If I insert 'defaultsite', I think so for HTTP/1.0 clients :
host header (http://pages.example.com) is present in the request, but I
think the http packet contains "GET command" with the complete URL (e.g.
http://pages.example.com/mkLista.do?code=A) so they will be able to ask
correct url.
Why do you say "... instead of tomcat front page" ?
"Tomcat front" page appears only you request http://pages.example.com.
----- Original Message -----
From: "Amos Jeffries" <squid3_at_treenet.co.nz>
To: <squid-users_at_squid-cache.org>
Sent: Thursday, March 18, 2010 12:16 PM
Subject: Re: [squid-users] Squid Accelerator mode: HTTP/1.0 and
'defaultsite' header
> Riccardo Castellani wrote:
>> I'm using Squid in accelerator mode (Version 2.7.STABLE3).
>> I'm using this config:
>>
>> http_port 72.43.22.19:80 accel vhost
>> cache_peer 10.1.1.2 parent 8283 0 no-query originserver Name=ITS
>> no-digest
>> acl LIST dstdomain pages.example.com
>> http_access allow LIST
>> cache_peer_access ITS allow LIST
>> cache_peer_access ITS deny all
>>
>>
>> I can to describe my environment:
>>
>> We give this public site "mysite.example.com" (having this IP
>> 72.43.22.19:80) where users can view 4 links. If you pass by mouse in
>> front
>> of this 4 links you can see: 1st link
>> http://pages.example.com/mkLista.do?code=A
>> 2nd link http://pages.example.com/mkLista.do?code=B
>> 3rd link http://pages.example.com/mkLista.do?code=C
>> 4th link http://pages.example.com/mkLista.do?code=D
>>
>> 'pages.example.com' is resolved as IP address of Squid, that is
>> 72.43.22.19;
>> this is a way to route requests to Squid accelerator (Squid is both on
>> extern. and on intern. network) which accelerates to 10.1.1.2 (internal
>> server).
>> I'd like accelerating ONLY these 4 links but I have no one 'defaultsite',
>> infact pages.example.com points to 'Apache Tomcat' default page;
>> accelerated
>> server gives only these 4 objects.
>> I read HTTP/1.0 requests don't send 'Host' header so if I omit
>> 'defaultsite', clients will get an "Invalid request" error.
>>
>> I can't understand if I have to insert defaultsite=pages.example.com in
>> this
>> case or not.
>> Now I'm working fine without this option but I have doubts if requests of
>> HTTP/1.0 clients can be accelerated.
>>
>
> Most clients these days will do so regardless of their version.
> defaultsite is completely optional, in your case if you omit it broken
> clients will get the squid "invalid request" error page instead of tomcat
> front page.
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE8 or 3.0.STABLE25
> Current Beta Squid 3.1.0.18
Received on Thu Mar 18 2010 - 20:09:39 MDT
This archive was generated by hypermail 2.2.0 : Fri Mar 19 2010 - 12:00:05 MDT