F.A.Q.'s
Statistics
Q: How
can I combine my log files into one instead of three?
A: NOTE: The following instructions require
you to modify your configuration files. ALWAYS back up your configuration files
before making any changes.
Some statistical programs such as Virtual WebTrends require you to combine your
log files into one file instead of three. To do this on our system, follow these
steps:
SSH to your virtual server.
Go to your www/conf directory.
Add the following line of code to your vhosts.conf file:
LogFormat "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i""
We recommend you cut and paste the above line into your file using a UNIX editor
such as PICO so you do not make any mistakes when adding it to your
configuration file. Also, be sure not to add any extra Hard Returns, as this
causes problems with your virtual server and may cause it not to function.
Q: Why
do my log files have references to robots.txt? I don't have that file!
A: The file robots.txt is a file which you
can optionally create to instruct webcrawlers, such as those used by search
engines, how to behave on your site. Specifically, through robots.txt you can
tell webcrawlers what directories and HTML documents not to scan. You can do
this so your site is not overwhelmed by webcrawlers indexing your site, or so
that only specific areas of your site are indexed.
Information on how to create your own robots.txt can be found here:
http://info.webcrawler.com/mak/projects/robots/robots.html
Q: How
can I have my web stats sent to me in an email message, now that the
getstats command is no longer available?
A: We recommend customizing Analog, a web
statistics program which normally produces its results in the form of a web
page. Analog can be configured to generate plain-text statistics (like getstats)
so that you can email the results rather than look them up on a web page.
Once installed, follow the steps below to configure Analog to send you
statistics via email:
SSH to your virtual server and locate the Analog configuration file for the
appropriate domain. For the purpose of this example, assume your domain name is
yourdomain.com:
cd ~/etc/analog
pico www.yourdomain.com.cfg
Remove the following line from your Analog configuration file:
OUTFILE /usr/home/yourdomain/www/htdocs/analog/www.
yourdomain.com.html
Add the following lines at the bottom of the file:
OUTPUT ASCII
OUTFILE -
This will cause Analog to output the statistics in plain-ASCII to the
standard-output similar to the getstats command. Otherwise, Analog will publish
to a web page instead, which is normally accessed via the following URL:
http://www.yourdomain.com/analog/www.yourdomain.com.html
Enter the crontab -e command to edit your current Crontab (system events file):
crontab -e
Add the following line to your Crontab (be sure to enter this on a single line):
59 23 * * * /usr/local/bin/analog3.31
+g/usr/home/yourdomain/etc/analog/www.yourdomain.com.cfg | virtual sendmail
youremail@address.com
The above line will cause Analog to run 1 minute before Midnight each day, and
email the report to you at that time.
If you wish to further customize your Analog configuration, please refer to the
following URL for further documentation:
http://www.statslab.cam.ac.uk/~sret1/analog/docs3/Readme.html
Virtual Server Lite |
Virtual Server Standard |
Virtual Server Pro |
Virtual Server Ultra |
400 megs |
1000 megs |
1500 megs |
6000 megs |
Details |
Details |
Details |
Details |
Order |
Order |
Order |
Order |
|