鱿鱼和httpsurl

我已经使用--enable-sslconfiguration将squid安装为非透明代理/caching服务器。 它是父代理服务器proxy1.ut.ac.ir

对于HTTP URL,一切正常,但任何HTTPS URL都会被404 Server not found404 Server not found (例如Gmail或https://www.google.com )所响应。

这是打开www.gmail.com的access.log条目:

 1279493581.278 544 127.0.0.1 TCP_MISS/302 1136 GET http://mail.google.com/mail/ - DEFAULT_PARENT/proxy1.iut.ac.ir text/html 1279493581.283 0 127.0.0.1 TCP_MISS/404 0 CONNECT www.google.com:443 - DIRECT/- - 

terminal鱿鱼说:

 2010/07/18 18:52:27| ipcacheParse: No Address records in response to 'www.google.com' 

这里是squid.conf

 http_port 3128 http_access allow all cache_peer proxy1.ut.ac.ir parent 3128 0 no-query default no-digest no-netdb-exchange cache_dir ufs /usr/local/squid/var/cache 100 16 256 coredump_dir /usr/local/squid/var/cache 

当我将proxy1.ut.ac.ir设置为浏览器中的代理服务器时,没有任何问题,所以在父代理服务器中没有任何问题。

它看起来像服务器托pipe鱿鱼不能parsing名称“www.google.com”,对我来说。

你的access.log示例中的第二行是告诉你,squid不是将请求发送到父caching,而是试图直接连接到“www.google.com”( DIRECT/-是提示)。 如果你想要将CONNECT请求发送到父caching,那么将never_direct allow CONNECT指令添加到你的squid.conf文件中,你就可以开始工作了。