Squid 代理 - https 可以工作,但 http 网站不工作

Squid 代理 - https 可以工作,但 http 网站不工作

我有一个 Squid 代理配置文件,我已经处理了几天。而我被这最后一个问题困住了。我终于让 https URL 通过代理工作了,但 http URL 却不起作用。我做错了什么?我遗漏了什么?

acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

acl SSL_ports port 443
acl Safe_ports port 80                  

acl CONNECT method CONNECT
acl destinations dstdomain .somesite.com .someothersite.com
acl all_others dst all

acl myclients src 75.162.95.96 98.231.47.27

http_access allow manager localhost
http_access deny manager

http_access allow CONNECT SSL_ports
http_access allow CONNECT Safe_ports

http_access deny to_localhost
http_access allow destinations

http_access allow localnet
http_access allow localhost
http_access allow myclients
# And finally deny all other access to this proxy
http_access deny all_others
# Squid normally listens to port 3128
http_port 80
http_port 25000
# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?
#Uncomment and adjust the following to add a disk cache directory.
#cache_dir ufs /var/spool/squid 100 16 256
# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid
# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320

相关内容