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

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

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3145 | 回復(fù): 1
打印 上一主題 下一主題

[proxy] squid日志如何記錄wap訪問客戶端的手機(jī)號? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-05-25 14:20 |只看該作者 |倒序瀏覽
目前使用squid+apache方式做文件服務(wù)器服務(wù)
squid部署在80端口,apache部署在81端口。
因為是提供wap訪問的服務(wù)器,需要獲取用戶手機(jī)號做日志分析,請問squid能否像apache那么記錄用戶手機(jī)號?
編譯squid使用如下參數(shù):
configure options:  '--enable-emulate_httpd_log' '--enable-useragent-log' '--prefix=/apps/usr/squid'

squid.conf配置如下:
visible_hostname *.*.*.*
http_port 80 vhost vport
icp_port 0
cache_mem 2400 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 20000 KB
maximum_object_size_in_memory 4096 KB
cache_dir ufs /apps/usr/squid/tmp 10000 16 256
cache_store_log none
emulate_httpd_log on
useragent_log on
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh %{X-Up-Calling-Line-ID}i
/var/log/squid/access.log combined
pid_filename /apps/usr/squid/logs/squid.pid
cache_log /apps/var/squid/logs/cache.log
access_log /apps/var/squid/logs/access.log combined
acl QUERY urlpath_regex cgi-bin .php .cgi .avi .wmv .rm .ram .mpg .mpeg .zip .exe
cache deny QUERY
acl picurl url_regex -i \.bmp$ \.png$ \.jpg$ \.gif$ \.jpeg$
acl mystie1 referer_regex -i aaa
http_access allow all
acl hasref referer_regex -i .+
http_access deny hasref picurl
cache_peer *.*.*.*  parent 81 0 no-query originserver login=PASS
cache_effective_user squid
cache_effective_group squid



logformat日志里面添加了%{X-Up-Calling-Line-ID}i參數(shù),就不認(rèn)了,squid啟動報錯。還請各位大師排疑解惑?謝謝啦!
到底怎樣配置,才能讓squid取到用戶手機(jī)號?

論壇徽章:
0
2 [報告]
發(fā)表于 2009-05-25 15:37 |只看該作者
各位大俠沒有碰到過這種需求么?wap服務(wù)器都要這樣的啊
您需要登錄后才可以回帖 登錄 | 注冊

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

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP