Hi djtremors
I found 2 awstats.model.conf
> locate awstats.model.conf
/etc/awstats/awstats.model.conf
/home/admispconfig/ispconfig/web/ispc.awstats/awstats.model.conf
And they are different which one to use (or remove)..
> diff /etc/awstats/awstats.model.conf /home/admispconfig/ispconfig/web/ispc.awstats/awstats.model.conf
203c203
< DirData="/home/admispconfig/ispconfig/web/ispc.awstats.data"
---
> DirData="."
328c328
< AllowAccessFromWebToAuthenticatedUsersOnly=1
---
> AllowAccessFromWebToAuthenticatedUsersOnly=0
339c339
< ##AllowAccessFromWebToFollowingAuthenticatedUsers= ""
---
> AllowAccessFromWebToFollowingAuthenticatedUsers=""
Quote:
|
Originally Posted by djtremors
yeah it does get overwritten. If it is a global setting that you want for all sites, put it in the awstats.model.conf as that file is never overwritten and is used as the master conf file which the site file include the master.
If you want it per site and is different on each site then you may need to modify the awstats.php file to include a local version of the site... ie
PHP Code:
After this line (around line 147):
exec( "echo 'Include \"/etc/awstats/awstats.model.conf\"' > /etc/awstats/awstats.".$web_real_name.".conf" );
Add :
if ( file_exists("/etc/awstats/awstats.".$web_real_name.".local") ) exec( "echo 'Include \"/etc/awstats/awstats.".$web_real_name.".local\"' > /etc/awstats/awstats.".$web_real_name.".conf" );
Now you can add your changes (make sure the master doesn't double up) to the /etc/awstats/awstats.{site}.local file
This hasn't been tested and this is a quick patch but it should check if the "local" file exists and will update the sites conf file to include it on next run...
give it a try. let me know and if it works well enough and people want it, i could include it in....
|
Recent comments
1 day 9 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
1 day 18 hours ago
1 day 19 hours ago
2 days 11 hours ago
2 days 12 hours ago
2 days 15 hours ago