Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
awstats [2011/03/12 03:42] – k2patel | awstats [2020/08/10 02:35] (current) – external edit 127.0.0.1 |
---|
model="/etc/awstats/awstats.model.conf" | model="/etc/awstats/awstats.model.conf" |
else | else |
cp -f /usr/local/webair/etc/awstats.model.conf /usr/local/www/awstats/cgi-bin/awstats.model.conf | cp -f /usr/local/etc/awstats.model.conf /usr/local/www/awstats/cgi-bin/awstats.model.conf |
model="/usr/local/www/awstats/cgi-bin/awstats.model.conf" | model="/usr/local/www/awstats/cgi-bin/awstats.model.conf" |
fi | fi |
| |
if [ -e /etc/clusterstats ]; then | if [ -e /etc/clusterstats ]; then |
domains=$(cat /usr/local/logs/*.webair.com/logmap | tr ' ' '_' | sort | uniq) | domains=$(cat /usr/local/logs/*.site.com/logmap | tr ' ' '_' | sort | uniq) |
else | else |
cat /www/apache/conf/httpd.conf | grep ServerName | grep ^S | awk '{print $2, $2i"-access.log"}' > /www/logs/logmap | cat /www/apache/conf/httpd.conf | grep ServerName | grep ^S | awk '{print $2, $2i"-access.log"}' > /www/logs/logmap |
domain=$(echo $i | cut -d '_' -f 1) | domain=$(echo $i | cut -d '_' -f 1) |
if [ -e /etc/clusterstats ]; then | if [ -e /etc/clusterstats ]; then |
log="/usr/local/www/awstats/tools/logresolvemerge.pl /usr/local/logs/*.webair.com/$domain-access.log |" | log="/usr/local/www/awstats/tools/logresolvemerge.pl /usr/local/logs/*.site.com/$domain-access.log |" |
else | else |
log=/www/logs/$(echo $i | cut -d '_' -f 2) | log=/www/logs/$(echo $i | cut -d '_' -f 2) |