View Full Version : Recent Visitors for multiple domains under one account
labrat
09-19-2005, 08:31 PM
I just upgraded my account to the ROCKETtwo package and added a new domain. I'm trying to figure out how to view the Recent Visitors for the new domain. I see the stats page is under newdomain.originaldomain.com but I can't get the recent visitors in this way.
I would like to figure this out as I am planning on adding another domain for my friend's business and I would like to get separate site data.
On a related note, why does the new domain come up as if it's a subdomain of the original one? I would really like to keep the two domains as separate as possible. This will be a bigger concern when I add another domain.
labrat
10-02-2005, 12:19 PM
It would be really nice if someone at least posted that they didn't know the answer. I need to know some of the stats for my new site that are not recorded in the stats page. How can I get to this info????
labrat
10-03-2005, 02:42 PM
For folks that are interested, here is the answer I got from HR. I have made the referenced domains generic:
(1) The Webalizer stats for seconddomain.com can be found at http://seconddomain.com/stats/
If you wish to see more/different information as is presented in the Webalizer reports you can either install an alternate stats analysis script (quite a few of our customers use Awstats) or you can view each domain's raw access logs.
Your current access log for your main domain is the file /usr/local/apache/domlogs/yourdomain.com
Older archived logs are rotated, kept for an average of 14 days and can be found archived in .gz format as /usr/local/apache/domlogs/yourdomain.com.#.gz where # = a number (yourdomain.com.1.gz would be the most recent previous log, yourdomain.com.2.gz would be the one before that, etc)
Logs for any subdomains and/or pointed domains you may have are maintained in /usr/local/apache/domlogs/ as sub.yourdomain.com where sub = the name of the subdomain or pointed domain. In the case of seconddomain.com the current file would be sub.yourdomain.com with older files being sub.yourdomain.com.1.gz etc
As these files are stored outside of your home directory in order to access them you would have to do one of the following:
(a) copy the files to your home directory either via a shell session or using crontab, or
(b) setup an alternate stats analysis script to process the raw logs in their existing location and report on your stats
(2) Pointed domains are configured as server aliases for subdomains. As a general rule with domain pointing the pointed domain would remain in the visitor's browser address bar throughout their visit. There is one notable exception to this however...if you link to a subdirectory rather than a file and you neglect to include a trailing slash the user would be redirected to the corresponding subdomain URL.
Example:
a href = http://www.seconddomain.com/stats/index.html
--> http://www.seconddomain.com/stats/index.html (good)
a href = http://www.seconddomain.com/stats/
--> http://www.seconddomain.com/stats/ (good)
a href = http://www.seconddomain.com/stats
--> http://seconddomain.yourdomain.com/stats/ (not good)
As long as you make sure to use trailing slashes consistantly when linking to directories there will be no connection between the pointed domain and the main domain it's hosted under.
That info coupled with the info in this thread (http://forums.hostrocket.com/showthread.php?t=16869), made it possible for me to get the raw stats for both domains.
vBulletin® v3.7.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.