- 论坛徽章:
- 0
|
redhat as 5.4 , 安装自带的 squid-2.6.STABLE21-3.el5.i386.rpm 包 。
cat /etc/squid/squid.conf 如下
http_port 8080
hierarchy_stoplist cgi-bin ?
hierarchy_stoplist -i ^https:\\ ?
acl QUERY urlpath_regex -i cgi-bin \? \.asp \.php \.jsp \.cgi
acl denyssl urlpath_regex -i ^https:\\
no_cache deny QUERY
no_cache deny denyssl
cache_mem 512 MB
cache_swap_low 90
cache_swap_high 95
cache_effective_user squid
cache_effective_group squid
dns_nameservers 168.126.63.1
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_dir ufs /var/spool/squid 4096 16 256
coredump_dir /var/spool/squid/cache
visible_hostname localhost
cache_mgr webmaster@localhost
maximum_object_size 4096 KB
maximum_object_size_in_memory 8 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
pid_filename /var/log/squid.pid
# TAG: acl
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 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
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
#acl lan1 src 192.168.168.0/24
acl lan2 src 172.16.200.0/24
acl all src 0.0.0.0/0
#http_access allow lan1
http_access allow lan2
http_access allow manager localhost
http_access deny all
#======================================
初始化 /usr/sbin/squid -z 结果如下
[root@localhost etc]# /usr/sbin/squid -z
2010/10/17 23:32:50| parseConfigFile: line 74 unrecognized: 'httpd_accel_host virtual'
2010/10/17 23:32:50| parseConfigFile: line 75 unrecognized: 'httpd_accel_port 80'
2010/10/17 23:32:50| parseConfigFile: line 76 unrecognized: 'httpd_accel_with_proxy on'
2010/10/17 23:32:50| parseConfigFile: line 77 unrecognized: 'httpd_accel_uses_host_header on'
2010/10/17 23:32:50| Creating Swap Directories
初始化失败;。
哪位见过这种情况? 请指点一下哦。。 |
|