# emulate_httpd_log off
# ============================================================================
emulate_httpd_log on
# ============================================================================
# redirect_rewrites_host_header on
# ============================================================================
redirect_rewrites_host_header off
# ============================================================================
#Recommended minimum configuration:
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 SSL_ports port 443 563
acl Safe_ports port 80 # http
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 CONNECT method CONNECT
# 下面是只允许每天上三个小时的:
acl no_allow_time_0_1 time "/etc/squid/no_allow_time_0_1"
acl no_allow_time_0_2 time "/etc/squid/no_allow_time_0_2"
acl no_allow_time_0_3 time "/etc/squid/no_allow_time_0_3"
acl no_allow_time_0_4 time "/etc/squid/no_allow_time_0_4"
acl no_allow_time_0_5 time "/etc/squid/no_allow_time_0_5"
# 完
# 下面是只允许每天上八个小时的:
acl no_allow_time_1_1 time "/etc/squid/no_allow_time_1_1"
acl no_allow_time_1_2 time "/etc/squid/no_allow_time_1_2"
acl no_allow_time_1_3 time "/etc/squid/no_allow_time_1_3"
acl no_allow_time_1_4 time "/etc/squid/no_allow_time_1_4"
acl no_allow_time_1_5 time "/etc/squid/no_allow_time_1_5"
# 完
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
# And finally deny all other access to this proxy
http_access allow localhost
http_access deny all
#Allow ICP queries from eveyone
icp_access allow all