<Host name="localhost" appBase="webapps" >
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="ich_access_log."
suffix=".txt" pattern="combined" resolveHost="false" / >
</Host >
Setting for awstats
cp -r /usr/share/awstats/icon /var/www/awstats-icon
/usr/lib/cgi-bin/awstats.pl -config=hostname -update
Then access to :http://hostname/cgi-bin/awstats.pl?config=hostname
Edit cron
crontab -e
--
0 1 * * * /usr/lib/cgi-bin/awstats.pl -config=hostname -update
No comments:
Post a Comment