config.pl documentation.
This is a list of all the options that can be set in WWWstats configuration files:
- $LogFile
- Full path to the log file.
- @SkipFiles
- A Perl array of files to be skipped. These are really Perl regexps, but you don't need to know
regexps to use them. If you want the file private.html to be skipped as well as all GIFs, you
write:
@SkipFiles=("private.html","\\.gif");
- @SkipHosts
- This works just like SkipFiles, but is matched against the host name of visitors instead.
Useful for leaving out your own hits if you have a static IP address.
- $Barwidth
- The size (in pixels) of the largest bar in the graphs.
- $BarImage
- The URL to the bar image. (Note that this value is inserted as the SRC of the IMG element
in the HTML report, so it can be anything you like as long as it points to a suitable bar.)
- $ForString
- The string that's printed in the header of each report after "Foo report for".
- $MinHitHost
- In the main report listing of visiting hosts, only hosts with more hits than the value of this
variable are listed.
- $MaxNoHosts
- In the same listing this variable gives the maximum number of hosts listed.
- $MinHitFile
- In the main report listing of the most visited pages, only pages with more hits than what
this variable is set to will be listed.
- $MaxNoFiles
- This variable limits the maximum number of pages listed in the same listing as MinHitFile
controls.
- $DefaultFile
- This is the name of the file your server is configured to deliver if you request a directory.
(Really a Perl regexp.) This is used to make sure that URLs like these two:
- http://www.stud.ifi.uio.no/~larsga/
- http://www.stud.ifi.uio.no/~larsga/index.html
are considered to be the same URL and listed as one in the listings.
- $LinkToPages
- If this is set to 1 the names of the most popular pages in the main report will be links to
those pages. Set it to 0 to turn this off.
- $SortDir
- This controls the sorting order in the entire package. Set it to -1 to get descending sorts,
1 to get ascending ones and 0 to wreak total havoc.
- $NoOfWeekPs
- Max number of pages listed in the weekly report.
- %Aliases
- Use this if you want to different URLs to be counted as one. This is explained in more detail
in the main documentation.
- $StyleURL
- If this variable is set all reports will use it as the URL of an external
CSS stylesheet. This can be used to customize the
layout of the reports.
- $RestrictTo
- This is a single Perl regexp and if it is set only pages that match it will be listed.
- $DNSLookup
- 1: Make the script look up the host names of all hosts that are just recorded by their IP addresses. This is mainly useful for web servers that are configured to not do DNS lookup on
visitors. Note: this slows the script considerably. 0: Don't do any lookup.
- $DNSFile
- 1: Store all lookups in a disk database, so that later lookups are faster. 0: Don't.
- $LocalSite
- The URL of your site. Used in the referrer report to determine which referrals are internal
to the site.
- $ReferLinks
- 1: Make referrers listed in WWWrefer.pl links. 0: Don't.
- $ReferMaxNo
- Maximum number of referrers listed under a single page in WWWrefer.pl
- $ReferMinHit
- Minimum number of referrals from a URL listed in WWWrefer.pl.
- $ReferInternal
- 1: List internal referrals. 0: Don't.
- $FullHostName
- 1: List full host names in WWWstats.pl. 0: Strip away first part.
08.Mar.98 22:11,
Lars Marius Garshol,
larsga@ifi.uio.no. A part of
WWWstats documentation.