Próbuję nakłonić webalizera do generowania statystyk tylko dla linków do artykułów w CMS Joomla, czyli /index.php/*
np:
"GET /index.php/internet HTTP/1.1" 200 5958
"GET /index.php/telewizja HTTP/1.1" 200 4071
"GET /index.php/telewizja-cennik HTTP/1.1" 200 5399
z użyciem dyrektywy
IncludeURL /index.php/*
w webalizer.conf
Niestety dalej są statystyki dla wszystkich odwołań
Kod:
1 |
20 |
12,12% |
172 |
2,89% |
/ |
2 |
4 |
2,42% |
0 |
0,00% |
/templates/infolan4/modules.js |
3 |
3 |
1,82% |
12 |
0,20% |
/media/jui/js/jquery-migrate.min.js |
4 |
3 |
1,82% |
0 |
0,00% |
/media/jui/js/jquery-noconflict.js |
5 |
3 |
1,82% |
99 |
1,66% |
/media/jui/js/jquery.min.js |
6 |
3 |
1,82% |
2 |
0,03% |
/media/system/css/system.css |
7 |
3 |
1,82% |
1 |
0,02% |
/media/system/js/caption.js |
8 |
3 |
1,82% |
7 |
0,12% |
/media/system/js/core.js |
Poniżej wklejam mój plik konfiguracyjny webalizer.conf
#LogFile /var/log/httpd/access_log
LogFile /var/log/httpd/www.myhost.net.pl-access_log
#LogType clf
#OutputDir /var/lib/httpd/htdocs/usage
OutputDir /home/services/httpd/vhosts/webalizer.www.myhost.net.pl
#HistoryName webalizer.hist
#Incremental no
#IncrementalName webalizer.current
#ReportTitle Usage Statistics for
HostName www.myhost.net.pl
#HTMLExtension html
PageType htm*
PageType cgi
PageType phtml
PageType php3
PageType php
PageType pl
PageType shtml
#PagePrefix /documents
#PagePrefix /mycgi/parameters
#OmitPage /render
#UseHTTPS no
#HTAccess no
#StripCGI yes
# TrimSquidURL 0
DNSCache dns_cache.db
DNSChildren 10
#CacheIPs no
#CacheTTL 7
GeoDB yes
GeoDBDatabase /usr/share/GeoDB/GeoDB.dat
GeoIP yes
GeoIPDatabase /usr/share/GeoIP/GeoIP.dat
#HTMLPre <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
#HTMLHead <META NAME="author" CONTENT="The Webalizer">
#HTMLHead <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
#HTMLBody <BODY BGCOLOR="#E8E8E8" TEXT="#000000" LINK="#0000FF" VLINK="#FF0000">
#HTMLPost <BR CLEAR="all">
#HTMLTail <IMG SRC="msfree.png" ALT="100% Micro$oft free!">
#HTMLEnd </BODY></HTML>
#LinkReferrer no
#Quiet no
#ReallyQuiet no
#TimeMe no
#GMTTime no
#Debug no
#FoldSeqErr no
#VisitTimeout 1800
#IgnoreHist no
#IgnoreState no
#CountryGraph yes
#CountryFlags no
#FlagDir flags
#DailyGraph yes
#DailyStats yes
#HourlyGraph yes
#HourlyStats yes
#GraphLegend yes
#GraphLines 2
#IndexMonths 12
#YearHeaders yes
#YearTotals yes
#GraphMonths 12
#InOutkB auto
#TopSites 30
#TopKSites 10
#TopURLs 30
#TopKURLs 10
#TopReferrers 30
#TopAgents 15
#TopCountries 30
#TopEntry 10
#TopExit 10
#TopSearch 20
#TopUsers 20
#AllSites no
#AllURLs no
#AllReferrers no
#AllAgents no
#AllSearchStr no
#AllUsers no
#IndexAlias home.htm
#IndexAlias homepage.htm
#DefaultIndex yes
#HideSite *webalizer.org
#HideSite localhost
#HideReferrer webalizer.org/
HideReferrer Direct Request
HideReferrer file:*
HideURL *.gif
HideURL *.GIF
HideURL *.jpg
HideURL *.JPG
HideURL *.jpeg
HideURL *.JPEG
HideURL *.png
HideURL *.PNG
HideURL *.ra
#HideAgent RealPlayer
#HideUser root
#HideUser admin
#GroupURL /cgi-bin/* CGI Scripts
#GroupURL /images/* Images
#GroupSite *.aol.com
#GroupSite *.compuserve.com
GroupReferrer onet.pl/ Onet (onet.pl)
GroupReferrer wp.pl/ Wirtualna Polska (wp.pl)
GroupReferrer interia.pl/ Interia (interia.pl)
GroupReferrer .gazeta.pl/ Gazeta.pl (gazeta.pl)
GroupReferrer emulti.pl/ Emulti (emulti.pl)
GroupReferrer hoga.pl/ Hoga (hoga.pl)
GroupReferrer netsprint. NetSprint (netsprint.pl)
GroupReferrer yandex.pl/ Yandex (yandex.pl)
GroupReferrer szukacz.pl/ Szukacz (szukacz.pl)
GroupReferrer yahoo.com/ Yahoo!
GroupReferrer altavista.com/ AltaVista (altavista.com)
GroupReferrer google. Google (google.com)
GroupReferrer dmoz.org/ Open Directory Project (dmoz.org)
GroupReferrer excite.com/ Excite
GroupReferrer infoseek.com/ InfoSeek
GroupReferrer webcrawler.com/ WebCrawler
#GroupUser root Admin users
#GroupUser admin Admin users
#GroupUser wheel Admin users
GroupAgent Opera/ Opera
#HideAgent Opera/
GroupAgent w3m* w3m
#HideAgent w3m*
GroupAgent Mozilla Netscape/Mozilla
#HideAgnet Mozilla
GroupAgent "MSIE 7" Microsoft Internet Exploder 7
#HideAgent MSIE 7
GroupAgent "MSIE 6" Microsoft Internet Exploder 6
#HideAgent MSIE 6
GroupAgent "MSIE " Older Microsoft Exploders
#HideAgent MSIE
GroupAgent Firefox/2. Firefox 2
#HideAgent Firefox/2.
GroupAgent Firefox/1. Firefox 1.x
#HideAgent Firefox/1.
GroupAgent Konqueror Konqueror
#HideAgent Konqueror
GroupAgent Safari Safari
#HideAgent Safari
GroupAgent Lynx* Lynx
#HideAgent Lynx*
GroupAgent Links* Links
#HideAgent Links*
GroupAgent Wget/ WGet
#HideAgent Wget/
GroupAgent (compatible; Other Mozilla Compatibles
#HideAgent (compatible;
GroupAgent Mozilla* Mozilla/Netscape
#HideAgent Mozilla*
#HideAllSites no
#GroupDomains 0
#GroupShading yes
#GroupHighlight yes
#IgnoreSite bad.site.net
IgnoreSite localhost
#IgnoreURL /test*
#IgnoreReferrer file:/*
IgnoreReferrer localhost
#IgnoreAgent RealPlayer
#IgnoreUser root
IncludeURL /index.php/*
#IncludeUser someuser
#MangleAgents 0
SearchEngine .google. q=
SearchEngine yahoo.com p=
SearchEngine altavista.com q=
SearchEngine aolsearch. query=
SearchEngine ask.co q=
SearchEngine eureka.com q=
SearchEngine lycos.com query=
SearchEngine hotbot.com MT=
SearchEngine msn.com q=
SearchEngine infoseek.com qt=
SearchEngine excite search=
SearchEngine netscape.com query=
SearchEngine mamma.com query=
SearchEngine alltheweb.com q=
SearchEngine northernlight.com qr=
#SearchCaseI yes
#DumpPath /var/lib/httpd/logs
#DumpHeader no
#DumpExtension tab
#DumpSites no
#DumpURLs no
#DumpReferrers no
#DumpAgents no
#DumpUsers no
#DumpSearchStr no
#ColorHit 00805c
#ColorFile 0040ff
#ColorSite ff8000
#ColorKbyte ff0000
#ColorIKbyte 0080ff
#ColorOKbyte 00e000
#ColorPage 00e0ff
#ColorVisit ffff00
#ColorMisc 00e0ff
#PieColor1 800080
#PieColor2 80ffc0
#PieColor3 ff00ff
#PieColor4 ffc080
#TrueTypeFont
Z góry dziękuję za pomoc w rozwiązaniu problemu
Krzysztof