Computer House Home PageList of products and servicesDrivers, Utilities, Info and More!Learn more about Computer House

 How do I setup counters for my Virtual Hosts?

 
Answer
 

Each of your virtual hosts will need to be added to your 'count.cfg' file in order to have the counters implemented on your virtual hosts' sites. Usually, if the Virtual Host domain name is not in this file, you will get an error that states:

"domain.com not in Auth Block of Config File."

     
  • FTP to your server.

  • Go to the '/usr/local/etc/Counter/conf/' directory.

  • Open the file named count.cfg (don't forget to ftp the file to your computer using ASCII format).

  • Find the reference to your domain name (section 5 in the count.cfg) and add each of your virtual hosts on the next line after the reference to your domain name using both the 'www.' prefix and without. (ie. www.example.com and example.com) FTP the count.cfg file back to server (again, don't forget to ftp using ASCII format)
  •  
  • Your virtual host can now use counters.
 
Related Links
 

Counter information can be found at the links below:

CGI/Java Library - http://www.computerhouse.com/cgi.htm

Count.cgi home page - http://www.fccc.edu/users/muquit/Count.html

Back to Index

The Computer House Technology Center, Inc.
740 South Sixth Avenue
Galloway, New Jersey 08205
(800) 372-6834 --- FAX: (609) 748-9776

Copyright © 2001 Computer House, Inc. All Rights Reserved.