[squid-users] Squid Accelerator mode: HTTP/1.0 and 'defaultsite' header

From: Riccardo Castellani <r.castellani_at_usl6.toscana.it>
Date: Thu, 18 Mar 2010 09:39:41 +0100

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.
Received on Thu Mar 18 2010 - 08:39:20 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 18 2010 - 12:00:04 MDT