From owner-freebsd-questions@FreeBSD.ORG Wed Apr 13 07:07:04 2005 Return-Path: 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 C3C3116A4CE for ; Wed, 13 Apr 2005 07:07:04 +0000 (GMT) Received: from vps.vocaboly.com (vps.vocaboly.com [207.58.137.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5461143D46 for ; Wed, 13 Apr 2005 07:07:04 +0000 (GMT) (envelope-from newbie@freebsdblog.org) Received: from p3ee3bd7a.dip.t-dialin.net ([62.227.189.122] helo=kevin) by vps.vocaboly.com with esmtpa (Exim 4.43) id 1DLbxm-0000rY-Rt for freebsd-questions@freebsd.org; Wed, 13 Apr 2005 03:07:03 -0400 Message-ID: <000b01c53ff7$bc464140$6402a8c0@kevin> From: "Kevin Pang" To: Date: Wed, 13 Apr 2005 09:09:25 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.vocaboly.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - freebsdblog.org X-Source: X-Source-Args: X-Source-Dir: Subject: About Apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2005 07:07:04 -0000 I installed Awstat, the log report url is something like http://www.mydomain.com/awstats/awstats.pl, I added password protection for the directory /awstats, everything works fine. But I found someone accessed the url http://www.mydomain.com/cgi-bin/awstats.pl, it's supposed to be a 404 error, but it is redirected to http://www.mydomain.com/awstats/awstats.pl . My question is why the url http://www.mydomain.com/cgi-bin/awstats.pl is working, any other options to make it work besides rewrite, alias and link. Thanks! Here is all related lines in httpd.conf: ----------- ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/" ScriptAlias /awstats/ "/usr/local/etc/awstats/wwwroot/cgi-bin/" Options None AllowOverride authconfig Order allow,deny Allow from All ----------- Output of "ll /usr/local/www/cgi-bin/", nothing is related to /awstats/ -rw-r--r-- 1 root wheel 0 Nov 3 17:24 EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING -rw-r--r-- 1 root wheel 274 Nov 3 17:24 printenv -rw-r--r-- 1 root wheel 757 Nov 3 17:24 test-cgi