Listing 1. master.cfg for Virtual Hosts
# Master.cfg File for all local Virtual Hosts
# Requires additional .cfg files for individual
# sites or pages. Created by Gaelyne R. Gasson
# for "Analyzing Web Stats with Analog"
# Customise to suit your requirements.
# Turn DEBUG and WARNINGS on to debug and solve
# mysteries. For use with cron scripts, once you
# are satisfied with your set up, these should be
# turned off, otherwise you will receive e-mail
# with warnings and information in it each time
# cron job is run. If using multiple log files,
# WARNINGS -L will turn off warnings about
# the duplicated dates/double counting. According
# to the author this is a warning message only and
# has no effect on Analog's analysis
# HEADERFILE, LOGO and IMAGEDIR allow you to
# customise the appearance of Reports.
# Causes request report to have links/urls for
# pages listed.
# What files are considered "pages" for
# counting purposes.
# Only pages are counted as requests.
# Exclude specific pages, files and entire
# directories from being counted as pages.
# These directives are useful if you've included
# FTP and XFERLOG logs and have customers
# accessing their site via FTP. These accesses
# are not counted.
# DIREXCLUDE keeps the directory from being listed
# or counted in the Directory Report.
# Exclude files and directories from being counted
# as requests.
# Exclude cgi programs from the file Type Report.
# Keep cgi-bin information from being made public.
# These aren't required if the reports
# aren't published on the web. Ignore line wraps.
REQOUTPUTALIAS */cgi-bin/* "admin"
REFOUTPUTALIAS <a HREF="http://main-host.com/cgi-bin/* "admin" " TARGET="_blank">http://main-host.com/cgi-bin/* "admin" </a>
REFOUTPUTALIAS <a HREF="http://vhost1.com/cgi-bin/* "admin"" TARGET="_blank">http://vhost1.com/cgi-bin/* "admin"</a>
FAILOUTPUTALIAS */cgi-bin/* "admin"
FAILREFOUTPUTALIAS */cgi-bin/* "admin"
REDIROUTPUTALIAS */cgi-bin/* "admin"
# Turn all reports on. Specific reports are
# turned off below.
# Lists most recent information first. For
# example, the current month is listed first
# in the MonthlyReport.
# TIMECOLS affect how Reports are displayed and
# what information is included with it, as
# described below. The PpRrBb format is a good
# way to initially see all available formats in
# use before deciding on the format you prefer.
# You can also set each of the time reports
# separately with the appropriate command, such
# as HOURCOLS or MONTHCOLS etc.). Lower-case
# letters refer to percentages:
# P=Pages R=Requests B=Bytes
# // p = pages r = requests b = bytes.
# TIMECOLS PpRrBb
# ALLGRAPH allows you to decide whether or not the
# graphs displayed are in ASCII format or as a
# graphic. P = graphic // p = ASCII ALLGRAPH P
# turns off the Virtual Host report. Useful if you
# have separate log files for each virtual host.
# It's "on" by default with the ALL ON command
# For log file formats with virtual hosts listed
# as part of the log format, this tells Analog
# the name of your virtual hosts, and is used to
# create the Virtual Host report.
# VHOSTINCLUDE vhost1
# FIVE is a 5 minute report that I don't use.
# FIVEROWS 10
# Number of 5 minute periods listed.
# QUARTER gives 15 minute reports.
# How many 15 minute periods to include.
# Hourly Summary. I find Hourly Report is enough.
# FILETYPE is useful for activity and FTP reports.
# A report on file sizes. Useful for FTP reports.
# Browser Report. I prefer the Browser Summary.
# Number of months in Monthly Report. 0 = all
# Number of weeks for the weekly report.
# Number of days for the Daily Report.
# Number of Hours for the Hourly Report.
# Non-Time related reports have floor and sortby
# commands. Floor limits the amount and type of
# data. The type can be: r=request, p=page,
# b=bytes, d=date, x=random, a=alphabetical
# If you use a floor, the sortby format should
# match the floor type. I use requests for all
# floor limits on non-time reports and also use
# requests for the sortby commands.
# Displays Australian sub domains listed below the
# ".au" listing in the HOST Report.
# Similar to the SUBDOMAIN command, this lists
# referrers that have "yahoo" in the domain
# grouped together, if number of requests match.
REFDIR <a HREF="http://*yahoo*/* " TARGET="_blank">http://*yahoo*/* </a>
HOSTALIAS *.aol.com aol.com
# Displays all AOL Host machines in a category.
# Excludes the local host.
# Excludes any machines on the local host.
# REFALIASES below lump all local hosts into
# one group for Referrer Report. (Ignore wrap)
REFALIAS <a HREF="http://*.main-isp.com/* "Internal-local" TARGET="_blank">http://*.main-isp.com/* "Internal-local</a>
REFALIAS <a HREF="http://main-isp.com/* "Internal-local" TARGET="_blank">http://main-isp.com/* "Internal-local</a>
REFALIAS <a HREF="http://*.vhost1.com/* "Internal-local" TARGET="_blank">http://*.vhost1.com/* "Internal-local</a>
REFALIAS <a HREF="http://*vhost1.com/* "Internal-local" TARGET="_blank">http://*vhost1.com/* "Internal-local</a>
# For intranets, this excludes internal accesses
# being considered as a referrer.
REFEXCLUDE <a HREF="http://123.12.123/*" TARGET="_blank">http://123.12.123/*</a>