tis 2009-09-29 klockan 15:41 +0800 skrev wangwen:
> alter HTTP_Port as follow:
> http_port 192.168.0.164:88 accel vhost defaultsite=192.168.24.198
> When Clients access http://192.168.0.164:88/rdims/index.jsp
> HTTP request header which Squid sent to backend server is:
>
> GET /rdims/index.jsp HTTP/1.0
> Accept: */*
> Accept-Language: zh-cn
> UA-CPU: x86
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1;.NETCLR
> 2.0.50727; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
> Host: 192.168.24.198
> Via: 1.1 szrd.com:88 (squid/2.6.STABLE21)
> X-Forwarded-For: 192.168.12.48
> Cache-Control: max-age=259200
> Connection: keep-alive
>
> Now i did not use vport.
> Above you said that the 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
Port management in accelerator mode is a little odd.. use of vport
(without arguments) is recommended if you need to use ports other than
the default (80/443).
Regards
Henrik
Received on Mon Oct 05 2009 - 09:44:33 MDT
This archive was generated by hypermail 2.2.0 : Mon Oct 05 2009 - 12:00:02 MDT