亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 3255 | 回復(fù): 4
打印 上一主題 下一主題

[proxy] 請(qǐng)教squid代理為什么不刷新cache內(nèi)容? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2007-05-24 15:12 |只看該作者 |倒序?yàn)g覽
配置文件如下;
http_port *.*.*.*:80
acl StaticContent urlpath_regex "/usr/local/squid/etc/static_content"
no_cache deny !StaticContent
cache_mem 200 MB
cache_dir aufs /cahe 1024 16 256
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
access_log /bak/log/squid/access.log combined
cache_log /bak/log/squid/cache.log
cache_store_log none
emulate_httpd_log on
useragent_log /bak/log/squid/useragent.log
referer_log /bak/log/squid/referer.log
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .             525600    100%    525600      ignore-reload
acl purge_host src *.*.*.*/255.255.255.255
acl all src 0.0.0.0/0.0.0.0
acl picture urlpath_regex "/usr/local/squid/etc/picture"
acl picture1 url_regex "/usr/local/squid/etc/picture"
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
acl purge method PURGE
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow purge purge_host
http_access deny purge
http_access deny picture1
http_access allow all
http_reply_access allow all
icp_access allow all
cache_mgr webmaster
cache_effective_user support
cache_effective_group support
httpd_accel_host localhost
httpd_accel_port 80
httpd_accel_single_host on
httpd_accel_uses_host_header on
logfile_rotate 7



請(qǐng)問(wèn)大家:
我用ip訪問(wèn)發(fā)現(xiàn)cache的內(nèi)容能更新,但用域名訪問(wèn)就是更新不了,不知道問(wèn)題出在哪里,最后我只能手動(dòng)purge來(lái)清空cache內(nèi)容來(lái)實(shí)現(xiàn),希望得到大家支持,謝謝

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2007-05-24 18:25 |只看該作者
緩存了,你設(shè)置一下refresh 就可以。

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2007-05-25 00:15 |只看該作者
能說(shuō)的具體一點(diǎn)嗎?是refresh_pattern .             525600    100%    525600      ignore-reload嗎?

難道改成refresh_pattern .             0   100%    0      ,
但為什么用ip訪問(wèn)能從服務(wù)器端獲取更新的頁(yè)面呢?用域名訪問(wèn)就不行啊

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2007-05-25 09:31 |只看該作者
原帖由 kingnowok 于 2007-5-25 00:15 發(fā)表
refresh_pattern .             525600    100%    525600      ignore-reload

你也太。。了,525600/60/24=365,你還加了ignore-reload參數(shù),等于365天后,cache才會(huì)更新。

[ 本帖最后由 suek 于 2007-5-25 09:32 編輯 ]

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2007-05-25 09:41 |只看該作者
樓上的我明白,可你還是沒(méi)回答我,為什么IP訪問(wèn)可以獲取服務(wù)器端的更新消息呢?
那我改成refresh_pattern .             1440  100%    1440,是不是就是說(shuō)明一天以后,squid就會(huì)從服務(wù)器端獲取更新頁(yè)面了?不過(guò)這樣感覺(jué)對(duì)服務(wù)器壓力太大,有沒(méi)好一點(diǎn)的解決辦法。謝謝
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP