Search squid archive

Re: squid vport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Lenaghan wrote:
"accel vhost defaultsite=192.168.24.198 vport=8080" means ...

... 'accelerate' the URL.
... (vhost) use client-given Host: header when available.
... (vport=) use the client-given Host: HTTP port (default 8088 if none
found).
... (defaultsite=) use 192.168.24.198 if neither of the above give a usable
domain/IP.

So Squid check the URL. Finds /rdims/index.jsp.
... checks the Host: header. Finds 192.168.0.164:88, making
URL=http://192.168.0.164:88/rdims/index.jsp
... checks the Host: header port. Finds 88, making
URL=http://192.168.0.164:88/rdims/index.jsp
... has a domain '192.168.0.164', so skips defaultsite

I think it should have been: "Host: 192.168.0.164:88" maybe something went
wrong and caused defaultsite to be used. Henrik might know.

Amos, I only read a small portion of the code but I believe that if a
vport is *specified* it's *always* used.

Aye. While looking up your problem after wangwen's I found the details.


This is 2.7:

	    if (vport > 0)
 		port = vport;
 	    else
		port = htons(http->conn->me.sin_port);

(The 2.6 code is different but I believe it has a similar intent.)

Either way it would be great if the docs were more specific!

Something else that's confusing in the docs: Does accel have to be
specified if vhost, vport or defaultsite is given? Or are the docs
trying to say that those things have no effect unless accel is given?
Again, it would be great if the docs were clearer.

That was a bit fuzzy across a few releases as well. I've now settled on saying its needed. It's the mode specifier, the others are just options to tweak how the mode works.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE19
  Current Beta Squid 3.1.0.14

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux