A full service Domain Name Registration
and Internet Hosting Company

R S H
WEB SERVICES

HOME  PRODUCTS  SITE SEARCH  DOMAIN NAMES


Full Image Version
Navigate
RSH Web Services
Virtual Servers
F.A.Q.'S
Cgi - Perl
Disk Space
DNS Questions
Email Questions (Page 1)
Email Questions (Page 2)
Microsoft FrontPage98
FTP File Transfer Protocol
Miscellaneous Questions
mSQL - Data Bases
PHP Questions
Server Administration
SSL Secure Socket Layer
Statistics
Unix
Virtual Hosting
Resources
Contact Us
Site Map
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:
Telnet to your virtual server.
Go to your www/conf directory.
Add the following line of code to your httpd.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:
Telnet or 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


© RSH Web Services   All Rights Reserved