Thursday, November 01, 2007

squid 安裝 - sarg 設定

1. Compile Sarg

# cd /usr/local/src
# tar -xvf sarg-2.2.3.1.tar.gz
# cd sarg-2.2.3.1
# ./configure --sysconfdir=/etc/sarg

# vi /etc/httpd/conf.d/sarg.conf


2. Setting Web Dir for Sarg
Alias /sarg /var/www/html/sarg


DirectoryIndex index.html
AllowOverride AuthConfig
#AuthType Basic
#AuthUserFile /var/www/html/sarg/.htaccess
#order deny,allow
#deny from all
#allow from 127.0.0.1



# cd /etc/squid/script
# wget http://www.initzero.it/products/opensource/sarg-reports/download/sarg-report
# mv sarg-report sarg-report.sh
# vi sarg-report sarg-report.sh
請改下面改成你需要的

HTMLOUT=/var/www/html/sarg -- sarg 網頁的目錄
LOGOIMG= Sarg 首頁 LOGO 網址
LOGOLINK=網址
DAILY=Daily -- Daily Report 的目錄名稱
WEEKLY=Weekly -- Weekly Report 的目錄名稱
MONTHLY=Monthly -- Monthly Report 的目錄名稱

No comments:

Post a Comment