- 论坛徽章:
- 0
|
我安装了一台squid,通过squid在访问网站的时候其他的基本上都是正常的,只是在访问sina的时候,一打开当网页显示完毕后该页面就出现假死的状态,等到sina网的弹出窗口出来后网页就正常了,请教一下是不是跟squid里面的设置有关?
我的squid文件配置如下:
####### Bankofshanghai sample Creation by chenjie 09/10/20
#######===== Global Configure Options
#######===== Network Parameters
#http_port 3128
http_port 8080
#http_port 807
#icp_port 3130
#######============== Log Files option
cache_access_log /var/log/squid/access.log squid
cache_access_log /var/log/squid/common.log common
cache_log /var/log/squid/cache.log #设置缓存日志文件
cache_store_log /var/log/squid/store.log #设置缓存日志记录文件
pid_filename /var/log/squid/squid.pid
#######===== Cache memory Configure Options
acl denyssl urlpath_regex -i ^https:\\
hierarchy_stoplist cgi-bin?
hierarchy_stoplist -i ^https:\\ ?
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl QUERY urlpath_regex -i cgi-bin \? \.asp \.php \.jsp \.cgi \.exe \.bat \.vbs \.com \.jr \.pif \.scr \.cmd
#no_cache deny QUERY
#acl apache rep_header Server ^Apache
#broken_vary_encoding allow apache
no_cache deny QUERY
no_cache deny denyssl
cache_mem 1024 MB
cache_swap_low 70
cache_swap_high 90
fqdncache_size 1024
maximum_object_size 4096 KB #单个文件最大缓存大小,超过这个大小将不缓存
maximum_object_size_in_memory 1024 KB #在内存中单个文件最大缓存大小,超过这个大小将不缓存到内存中
dns_nameservers 11.1.0.132
dns_nameservers 11.1.0.135
ipcache_size 1024
ipcache_low 90
ipcache_high 95
# request_body_max_size 0 KB
# memory_pools on
# memory_pools_limit 5 MB
# cache_replacement_policy lru
# memory_replacement_policy lru
# max_open_disk_fds 0 # only for RHEL patch fd-config , default 0 is unlimit
# max_filedesc 1024 # only for RHEL patch fd-config , default 1024
cache_dir aufs /var/spool/squid/cache1 2048 16 256
cache_dir aufs /var/spool/squid/cache2 2048 16 256
cache_dir aufs /var/spool/squid/cache3 2048 16 256
cache_dir aufs /var/spool/squid/cache4 2048 16 256
cache_dir aufs /var/spool/squid/cache5 2048 16 256
visible_hostname proxy #设置squid服务器主机名
#######===== OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
#ftp_user Squid@
#ftp_passive on
#ftp_sanitycheck on
#ftp_telnet_protocol on
#check_hostnames on
###### Don't Cache exec files
acl Exe_files urlpath_regex -i \.exe$ \.bat$ \.vbs$ \.com$ \.jr$ \.pif$ \.scr$ \.cmd$
no_cache deny Exe_files
acl Video_String urlpath_regex -i \.mp4$ \.mpeg$ \.rmvb$ \.rm$
http_access deny Video_String
#######===== ACL Configure Options (ACCESS CONTROLS)
#######--- default
# acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl SSL_ports port 4443 # megastep.samsungsdi.com
acl SSL_ports port 9443 #
acl SSL_ports port 4430 #
acl SSL_ports port 8443 # https://218.75.81.46:8443/compass/Login
acl SSL_ports port 16801 # 116.239.12.125
acl Safe_ports port 88 # www.loi.com.tw
acl Safe_ports port 80 # http
acl Safe_ports port 83 # for http://asp.customs.gov.tw:83/ABLS/Index.jsp
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 81 # http://sso.customs.gov.tw:81/certerror.htm
acl Safe_ports port 818 # http://222.73.173.152:818/examPage/Login.aspx
acl Safe_ports port 224 # http://222.73.173.152:224/examPage2/Login.aspx
acl Safe_ports port 397 # http://58.215.75.53:397/examPage/Login.aspx
acl Safe_ports port 85 # http://220.189.211.69:85
acl Safe_ports port 16801 # 116.239.12.125
acl CONNECT method CONNECT
acl numericIP_url url_regex ^[0-9]+.[0-9]+.[0-9]+.[0-9]+:443
#######============== Squid & AD funtion
acl Java_ap browser Java/1.3 Java/1.4 Java/1.5 Java/1.6 HTTPDataProvider
####### Default http_access control
http_access allow localhost
http_access allow manager localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
####### Proxy Parent
cache_peer 11.1.0.20 parent 80 3130 login=yecl:760709 no-query
###### common rule
##### acl common_denyip dst "/etc/squid/common_denyip.txt"
##### acl common_denyurl url_regex -i "/etc/squid/common_denyurl.txt"
##### acl common_denydn dstdomain "/etc/squid/common_denydn.txt"
##### http_access deny common_denyip
##### http_access deny common_denyurl
##### http_access deny common_denydn
http_access allow all
never_direct allow all
|
|