歡迎您光臨本站 註冊首頁

看日誌分析CDN的squid.conf配置文件

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

看日誌分析CDN的squid.conf配置文件

因為www.cdnunion.com的squid.conf文件是加密碼的,,可不可以通過分析cacha.log文件,,得到squid.conf文件呀,???大家猜猜看吧,!


====================== cacha.log==============================
2007/11/02 15:31:21| Squid Cache (Version 2.6.STABLE9): Exiting normally.
2007/11/02 15:31:27| Starting Squid Cache version 2.6.STABLE9 for i686-pc-mingw32...
2007/11/02 15:31:27| Running as Squid Windows System Service on Windows Server 2003
2007/11/02 15:31:27| Service command line is:
2007/11/02 15:31:27| Process ID 3192
2007/11/02 15:31:27| With 2048 file descriptors available
2007/11/02 15:31:27| With 2048 CRT stdio descriptors available
2007/11/02 15:31:27| Windows sockets initialized
2007/11/02 15:31:27| Using select for the IO loop
2007/11/02 15:31:27| Performing DNS Tests...
2007/11/02 15:31:27| Successful DNS name lookup tests...
2007/11/02 15:31:27| DNS Socket created at 0.0.0.0, port 1080, FD 5
2007/11/02 15:31:27| Adding nameserver 210.51.25.165 from squid.conf
2007/11/02 15:31:27| Adding nameserver 61.129.81.201 from squid.conf
2007/11/02 15:31:27| Unlinkd pipe opened on FD 8
2007/11/02 15:31:27| Swap maxSize 20480000 KB, estimated 1575384 objects
2007/11/02 15:31:27| Target number of buckets: 78769
2007/11/02 15:31:27| Using 131072 Store buckets
2007/11/02 15:31:27| Max Mem  size: 524288 KB
2007/11/02 15:31:27| Max Swap size: 20480000 KB
2007/11/02 15:31:27| Store logging disabled
2007/11/02 15:31:27| Rebuilding storage in d:\cache (CLEAN)
2007/11/02 15:31:27| Using Least Load store dir selection
2007/11/02 15:31:27| Current Directory is C:\squid\sbin
2007/11/02 15:31:27| Loaded Icons.
2007/11/02 15:31:27| Accepting accelerated HTTP connections at 218.234.224.123, port 80, FD 13.
2007/11/02 15:31:27| Ready to serve requests.
2007/11/02 15:31:27| Done reading d:\cache swaplog (0 entries)
2007/11/02 15:31:27| Finished rebuilding storage from disk.
2007/11/02 15:31:27|         0 Entries scanned
2007/11/02 15:31:27|         0 Invalid entries.
2007/11/02 15:31:27|         0 With invalid flags.
2007/11/02 15:31:27|         0 Objects loaded.
2007/11/02 15:31:27|         0 Objects expired.
2007/11/02 15:31:27|         0 Objects cancelled.
2007/11/02 15:31:27|         0 Duplicate URLs purged.
2007/11/02 15:31:27|         0 Swapfile clashes avoided.
2007/11/02 15:31:27|   Took 0.1 seconds (   0.0 objects/sec).
2007/11/02 15:31:27| Beginning Validation Procedure
2007/11/02 15:31:27|   Completed Validation Procedure
2007/11/02 15:31:27|   Validated 0 Entries
2007/11/02 15:31:27|   store_swap_size = 0k
2007/11/02 15:31:28| storeLateRelease: released 0 objects
2007/11/02 15:32:21| WARNING: Forwarding loop detected for:
Client: 218.234.224.123 http_port: 218.234.224.123:80
GET http://218.234.224.123/ HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
Host: 218.234.224.123
Via: 1.1 CNTC-CNC-BJ-DXT-218.234.224.123:80 (squid/2.6.STABLE9)
X-Forwarded-For: 76.175.213.152
Cache-Control: max-age=36000

2007/11/02 15:38:20| WARNING: Forwarding loop detected for:
Client: 218.234.224.123 http_port: 218.234.224.123:80
GET http://218.234.224.123/ HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; EMonitor 6.1 Windows NT)
Host: 218.234.224.123
Via: 1.0 CNTC-CNC-BJ-DXT-218.234.224.123:80 (squid/2.6.STABLE9)
X-Forwarded-For: 61.152.251.117
Cache-Control: max-age=36000

2007/11/02 15:43:21| WARNING: Forwarding loop detected for:
Client: 218.234.224.123 http_port: 218.234.224.123:80
GET http://218.234.224.123/ HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; EMonitor 6.1 Windows NT)
Host: 218.234.224.123
Via: 1.0 CNTC-CNC-BJ-DXT-218.234.224.123:80 (squid/2.6.STABLE9)
X-Forwarded-For: 61.152.251.117
Cache-Control: max-age=36000


======================以上是CACHA。LOG文件=======================
《解決方案》

http_port 218.234.224.123:80 vhost vport
cache_dir ufs d:\cacha 20480 16 256
visible_hostname CNTC-CNC-BJ-DXT-218.234.224.123:80
Add nameserver 210.51.25.165
Add nameserver 61.129.81.201
cache_log c:\var\log\cache.log


:em16: 汗,只能看出這麼幾條了,其它看不出來!,高手們分析分析!

[ 本帖最後由 badb0y 於 2007-11-7 15:28 編輯 ]
《解決方案》

:) :) :)
《解決方案》

cache_mem 512 MB

With 2048 file descriptors available

看得出是一個新手做的squid,那麼看看squid 2.6.STABLE9的默認conf是什麼樣的,估計大致就是什麼樣的了

簽名
---
跑在windows底下的squid????這種cdn聯盟不用也罷

[火星人 ] 看日誌分析CDN的squid.conf配置文件已經有606次圍觀

http://coctec.com/docs/service/show-post-22858.html