Accessing virtual Web-servers with Squid v1.1.* and Squid v2.0 ...

From: Henny Bekker <H.Bekker@dont-contact.us>
Date: Mon, 19 Oct 1998 14:04:22 +0100

Dear Squid users,

I was wondering if Squid v1.1 knows how to deal with virtual Web-servers.
When I access a Squid v1.1.22 proxy-server the HTTP/1.1 query will be
translated to a HTTP/1.0 query.. At least, this is what I see at our
Web-server.. Observe the next session:
-------------------------------------------------------------------------
Desire 23> telnet spin.accu.nl 3128 # A telnet to a Squid v1.1 server
Trying 194.151.46.8 ...
Connected to spin.accu.nl.
Escape character is '^]'. # Get an URL from the proxy with HTTP/1.1
GET
http://www.surfnet.nl/service-desk/diensten/ondersteunend/caching/.Cache_ser
ver_test HTTP/1.1
pragma: no-cache
host: info.nic.surfnet.nl

HTTP/1.1 200 OK
Date: Sat, 17 Oct 1998 23:05:04 GMT
Server: Apache/1.3.1 (Unix)
Last-Modified: Sat, 17 Oct 1998 22:46:34 GMT
ETag: "47050-303-36291e4a"
Accept-Ranges: bytes
Content-Length: 771
Connection: close
Content-Type: text/plain
   Bla bla bla
   [text deleted..]

Connection closed by foreign host.
Desire 24> telnet spin.accu.nl 3128
Trying 194.151.46.8 ...
Connected to spin.accu.nl.
Escape character is '^]'.
GET
http://www.surfnet.nl/service-desk/diensten/ondersteunend/caching/.Cache_ser
ver_test HTTP/1.1
pragma: no-cache
host: www.rug.nl

HTTP/1.1 200 OK
Date: Sat, 17 Oct 1998 23:05:28 GMT
Server: Apache/1.3.1 (Unix)
Last-Modified: Sat, 17 Oct 1998 22:46:34 GMT
ETag: "47050-303-36291e4a"
Accept-Ranges: bytes
Content-Length: 771
Connection: close
Content-Type: text/plain
   Bla bla bla
   [text deleted..]
Connection closed by foreign host.
Desire 25>

PS The object (the text "Bla bla bla") was the same on both occasions and
   thus the host: directive was ignored....

==============================================================================
In the access.log file at the Web-server on www.surfnet.nl I see:
info 132> tail -f httpd-access.log | grep Cache
spin.accu.nl - - [18/Oct/1998:01:05:04 +0200] "GET
/service-desk/diensten/ondersteunend/caching/.Cache_server_test HTTP/1.0"
200 771
spin.accu.nl - - [18/Oct/1998:01:05:28 +0200] "GET
/service-desk/diensten/ondersteunend/caching/.Cache_server_test HTTP/1.0"
200 771

In this file I see:
- A HTTP/1.0 instead of HTTP/1.1 ..
- The object (the text "Bla bla bla") was the same on both occasions and
  thus the host: directive seems to be ignored.... the request will be
  send to the Web-server on www.surfnet.nl instead of to the Web-server
  on www.rug.nl :-(

My questions are:
+ Does squid v1.1 known how to deal with HTTP/1.1 ??
+ Is squid v2.0 able to deal with HTTP/1.1 ....

Cheers, Henny

----------------------------------------------------------------------------
E-Mail: H.Bekker@accu.uu.nl !Disclaimer:The main obstacle to progress is
http http://www.uu.nl/~henny ! not ignorance, but the illusion
PTT: Voice: +31 30 2536971 Fax: +31 30 2531633 ! of knowledge o
Paper: H.J.Bekker, Utrecht University, Computer Centre _ /- _
        Po Box 80011, 3508 TA Utrecht Nederland (_) > (_)
----------------------------------------------------------------------------
Received on Mon Oct 19 1998 - 06:31:02 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:34 MST