- 论坛徽章:
- 1
|
有一个门户网站需要经常登陆维护,用NAT时,登录该页面每次均能正常进入.
当使用squid成功登录进入几次后,便不能正常登陆,而是直接返回登陆页.
我用firefox的httpfox发现正常登陆时url中sid=后面有一些内容,不能访问并弹回首页时sid=后面是空的;
我的squid是sunfreeware网站下载的,cache功能启用了.
请XDM帮忙分析一下原因,谢谢!!
配置文件如下:
http_port 8080
dns_nameservers xxx.xxx.xxx.xxx
redirect_children 30
memory_pools off
ipcache_size 1024
ipcache_low 100
ipcache_high 100
fqdncache_size 1024
request_header_max_size 100 KB
reply_header_max_size 100 KB
#maximum_object_size 10 KB
#maximum_object_size_in_memory 5 KB
#hierarchy_stoplist cgi-bin ?
#hierarchy_stoplist -i ^https:\\ ?
acl all src all
acl QUERY urlpath_regex -i cgi-bin \? \.php \.asp \.axpx \.jsp \.xml \.cgi \.avi \.wmv \.rm \.ram \.mpg \.mpeg \.zip \.exe \.
mp3 \.rmvb \.rar \.wav \.tar \.gz
acl denyssl urlpath_regex -i ^https:\\
no_cache deny QUERY
no_cache deny denyssl
cache_access_log /dev/null
cache_store_log none
cache_log /dev/null
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
cache_mem 1024 MB
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 30 KB
#minimum_object_size_in_memory 0 KB
cache_swap_low 85
cache_swap_high 90
#cache_dir null /tmp
cache_dir ufs /tmp/squidcache1 5000 16 256
cache_dir ufs /tmp/squidcache2 5000 16 256
cache_dir ufs /tmp/squidcache3 5000 16 256
cache_dir ufs /tmp/squidcache4 5000 16 256
cache_effective_user squid
cache_effective_group squid
acl our_networks src 10.0.0.0/8
acl our_networks src xxx.xxx.xxx.xxx/25
http_access allow our_networks
http_reply_access allow our_networks
icp_access allow our_networks
miss_access allow our_networks
ident_lookup_access deny our_networks
reply_body_max_size 0 allow our_networks
allow_underscore on |
|