在将这些行添加到文件squid.conf :
httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on
我有这个错误消息:
* Restarting Squid HTTP Proxy 3.0 squid3 2013/05/12 20:33:57| cache_cf.cc(346) squid.conf:59 unrecognized: 'httpd_accel_with_proxy' 2013/05/12 20:33:57| cache_cf.cc(346) squid.conf:60 unrecognized 'httpd_accel_uses_host_header' 2013/05/12 20:33:57| cache_cf.cc(346) squid.conf:61 unrecognized: 'httpd_accel_host' 2013/05/12 20:33:57| cache_cf.cc(346) squid.conf:62 unrecognized: 'httpd_accel_port'
我该如何解决这个问题?
在版本2.6之后,squidconfiguration选项发生了变化,用下面的代替:
http_port 3128 transparent http_port 80 vhost
在鱿鱼版本3.1及以上,指令是: http_port 80 intercept 。 在版本2.6中,不包括3.1, http_port 80 transparent 。 拦截或透明选项告诉squid像httpd_accel_uses_host_header一样从Host:头httpd_accel_uses_host_header代理目标。