我在 DigitalOCean 上设置了一个 VPS 并安装了 squid3。以下是 /etc/squid3/squid.conf 文件的结尾:
acl myhost src 1.2.3.4 # 1.2.3.4 is replaced by my ip at whatismyipaddress.com
http_access allow myhost
via off
forwarded_for off
request_header_access Allow allow all
request_header_access Authorization allow all
request_header_access WWW-Authenticate allow all
request_header_access Proxy-Authorization allow all
request_header_access Proxy-Authenticate allow all
request_header_access Cache-Control allow all
request_header_access Content-Encoding allow all
request_header_access Content-Length allow all
request_header_access Content-Type allow all
request_header_access Date allow all
request_header_access Expires allow all
request_header_access Host allow all
request_header_access If-Modified-Since allow all
request_header_access Last-Modified allow all
request_header_access Location allow all
request_header_access Pragma allow all
request_header_access Accept allow all
request_header_access Accept-Charset allow all
request_header_access Accept-Encoding allow all
request_header_access Accept-Language allow all
request_header_access Content-Language allow all
request_header_access Mime-Version allow all
request_header_access Retry-After allow all
request_header_access Title allow all
request_header_access Connection allow all
request_header_access Proxy-Connection allow all
request_header_access User-Agent allow all
request_header_access Cookie allow all
request_header_access All deny all
但无论我怎么尝试,我仍然收到访问被拒绝错误。
错误 无法检索请求的 URL
尝试检索 URL 时遇到以下错误: http://www.google.com/search?
Access Denied.
访问控制配置目前不允许允许您的请求。如果您认为这是不正确的,请联系您的服务提供商。
您的缓存管理员是网站管理员。
是什么原因?