Forum: Suggest change to default behavior
| rnejdl 949 days ago | In trying to use jawstats for a webserver with many sites, I found that I needed to change your default you have for which site to display. In order for my users to be able to go to http://mysite.com/weblogs, I needed to be able to default jawstats to show the weblogs for whichever site is requested. I changed line 318 in clsAWStats.php from this:
$sConfig = key($GLOBALS["aConfig"]); to this instead: $sConfig = $_SERVER['HTTP_HOST']; Then, in config.php, I set this: $bConfigChangeSites = false; and with an alias line in my httpd.conf, I am good to go. Thanks! Rusty Nejdl http://networking.ringofsaturn.com |
Participate in this discussion
You must be logged in to post in this thread.
Version 0.7 beta available now
Released 25th Janury 2009Try the online demo or download now.
Latest JAWStats News:
Version 0.7 Beta Released
Sprechen Sie Deutsch? Multi-lingual JAWStats v0.7 is finally here.
posted 25th Jan '09. read more »
Help JAWStats
Please donate a dollar (or more!) towards the hosting costs for this site. This money doesn't go anywhere near my pocket, it is purely used against my hosting bill.
Get $50 off your webhosting
You could do far worse than choose Dreamhost. I've used them for 6 years and they're great. Simply enter the promo code: JAWSTATS on signup!