From owner-freebsd-questions Fri Aug 23 11:31:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C97837B400 for ; Fri, 23 Aug 2002 11:31:20 -0700 (PDT) Received: from perimeter.co.za (obelix.perimeter.co.za [209.212.102.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 631F343E91 for ; Fri, 23 Aug 2002 11:31:16 -0700 (PDT) (envelope-from bsd@perimeter.co.za) Received: from asterix (ndf-dial-196-30-125-19.mweb.co.za [196.30.125.19]) (AUTH: LOGIN bsd@perimeter.co.za) by perimeter.co.za with esmtp; Fri, 23 Aug 2002 20:31:08 +0200 Message-ID: <00c401c24ad3$42c421a0$0200000a@perimeter.co.za> From: "Patrick O'Reilly" To: sroberts@dsl.pipex.com Cc: "Moti Levy" , "FreeBSD Questions" References: <1029962112.5163.38.camel@Demon.vickiandstacey.com><003401c24953$9deb9350$fd 6e34c6@moti><1029965360.5163.50.camel@Demon.vickiandstacey.com><006b01c24976$4c3c3d20$f901a8c0@win><1030124568.5163.62.camel@Demon.vickiandstacey.com> <007001c24ace$0a542400$0200000a@perimeter.co.za> <1030126193.5163.73.camel@Demon.vickiandstacey.com> Subject: Re: Available webserver (apache) monitor / log analyzer Date: Fri, 23 Aug 2002 20:31:10 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "Stacey Roberts" > Hi Patrick, > Thanks for getting back to me. > > I installed this thing from ports, and after reading the guidelines at: > > http://www.angelfire.com/scifi/danilody/webalizer/unixlinux.html > > That says > 1. The Webalizer Home Directory should be: /html/webalizer > 2. The Web Hit Report Home Directory should be: > /html/webalizer/name_of_website > or > /location_of_document_root/report > 3. The Web Hit Report URL is: http://www.name_of_website.com/report > > I'm a bit concerned that this this port does the installation somewhat > differently than what's mentioned at the site. Stacey, the docs are about right, but you don't need to literally use the path names they give as samples. For a start - this is my virtualhost entry in httpd.conf: --- ServerName docs.perimeter.co.za DocumentRoot /peri/www/docs.perimeter.co.za ErrorLog /peri/www/.log/docs.perimeter.co.za_error.log CustomLog /peri/www/.log/docs.perimeter.co.za_access.log common ServerName webalizer.perimeter.co.za DocumentRoot /peri/www/webalizer.perimeter.co.za ErrorLog /peri/www/.log/webalizer.perimeter.co.za_error.log CustomLog /peri/www/.log/webalizer.perimeter.co.za_access.log common --- 1. Instead of "/html/webalizer" I used "/peri/www/webalizer.perimeter.co.za" because that fits with the way I setup my virtual site as you see above. 2. So, instead of "/html/webalizer/name_of_website" , I have "/peri/www/webalizer.perimeter.co.za/docs.perimeter.co.za/" 3. And that's why I gave you the URL http://webalizer.perimeter.co.za/docs.perimeter.co.za/ For my customers I also create a symlink in their website directory which points to the same place. So it looks like there is a directory called /peri/www/docs.perimeter.co.za/webalizer/. Conceptually this is similar to the "or" part described in 2. From my server: # cd /peri/www/webalizer.perimeter.co.za/docs.perimeter.co.za/ # ls -al # ls -al total 182 drwxr-xr-x 2 www www 512 Aug 23 19:51 . drwxr-xr-x 13 www www 512 Aug 14 16:54 .. -rw-r--r-- 1 www www 2690 Aug 23 19:51 ctry_usage_200207.png -rw-r--r-- 1 www www 4647 Aug 23 19:51 ctry_usage_200208.png -rw-r--r-- 1 www www 2702 Aug 23 19:51 daily_usage_200207.png -rw-r--r-- 1 www www 3125 Aug 23 19:51 daily_usage_200208.png -rw-r--r-- 1 www www 1716 Aug 23 19:51 hourly_usage_200207.png -rw-r--r-- 1 www www 1991 Aug 23 19:51 hourly_usage_200208.png -rw-r--r-- 1 www www 4296 Aug 23 19:51 index.html -rw-r--r-- 1 www www 2341 Aug 23 19:51 usage.png -rw-r--r-- 1 www www 54718 Aug 23 19:51 usage_200207.html -rw-r--r-- 1 www www 97867 Aug 23 19:51 usage_200208.html Finally, here are the interesting lines from my webalizer.conf file for this same site (the rest of the conf file is still as it was installed: --- # Config file for Webalizer for docs.perimeter.co.za HostName docs.perimeter.co.za LogFile /peri/www/.log/docs.perimeter.co.za_access.log OutputDir /peri/www/webalizer.perimeter.co.za/docs.perimeter.co.za DNSCache /peri/www/webalizer.perimeter.co.za/.DNSCache DNSChildren 5 --- HTH. --- Regards, Patrick O'Reilly. ___ _ __ / _ )__ __ (_)_ __ ___ _/ /____ __ / __/ -_) _) / ~ ) -_), ,-/ -_) _) /_/ \__/_//_/_/~/_/\__/ \__/\__/_/ http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message