Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 72033 invoked from network); 21 Sep 2009 14:01:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Sep 2009 14:01:11 -0000 Received: (qmail 68538 invoked by uid 500); 21 Sep 2009 14:01:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 68519 invoked by uid 500); 21 Sep 2009 14:01:08 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 68510 invoked by uid 99); 21 Sep 2009 14:01:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 14:01:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shug94@gmail.com designates 209.85.216.191 as permitted sender) Received: from [209.85.216.191] (HELO mail-px0-f191.google.com) (209.85.216.191) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 14:00:59 +0000 Received: by pxi29 with SMTP id 29so2454663pxi.14 for ; Mon, 21 Sep 2009 07:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=Eg9LaY4G7HjxkGDcHmxb7v0iwsId8JLioAQQYJjdryA=; b=SH5rc4BOdUEBcNQ6rl89IU5lqdHtyUFhL9HsD7zweNkXMSwnhMaSvSlbs6GSSfs/hi Z18BeoMXK1VLa62K9TFyCdUcQVmaQt9nNMteE4BKpoXAukqfPOZdtIg2fKEBJ/gC+TYA D7evHQ51mbnoo8741Gr+SQuqa9X4KkuXpTus8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Tb+Qjz+CsBGuKjU6eUNxAzamUFgHphZWUnBaCB/FVvFskX180s03tcD6lre/sNrQyA V3hmj8WdlLjthEbaL32wQU+qrLww9ask/UBIBWAifi5qZCo0e3c/0ZktsL1cTk+ps943 mcbYzQqIHFzZILqXq6Ximkw/Y+S2icbrZGLek= MIME-Version: 1.0 Received: by 10.141.45.15 with SMTP id x15mr249508rvj.215.1253541637767; Mon, 21 Sep 2009 07:00:37 -0700 (PDT) Date: Mon, 21 Sep 2009 22:00:37 +0800 Message-ID: From: Cameron Smith To: users@httpd.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] ScriptAliasMatch not working on unix I was running an Apache Server version 2.2 on Windows. I was using ActiveState Perl as my perl installation. I had some other code which was going to make a request of my IP address (http://127.0.0.1/), and thus be requesting '/', I needed to redirect this request to a handler script. Thus I added the following line to my httpd.conf: ScriptAliasMatch ^/$ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/SBG_ReceivedMessageListener.pl" This now worked fine, and all was right with the world. Then I was told that I would need to port my code to Unix, Centos in particular, and that the version of Apache on that box would be 2.0. (I have looked into it further, and luckily it is 2.2, so I don=92t need to worry about incompatibilities there.) I took the conf file from the unix apache install and altered it to reflect my httpd.conf file, including altering the previous ScriptAliasMatch line so that it now says: ScriptAliasMatch ^/$ "/var/www/cgi-bin/SBG_ReceivedMessageListener.pl" All of my other requests now work, I can run the scripts in my cgi-bin directory, but this one is a problem. When I try to issue a request I get the following error in a '404 Not Found' page, 'The requested URL / was not found on this server'. I also get the following in my error_log, '[error] [client 127.0.0.1] Attempt to serve directory: /var/www/html/'. It seems to be ignoring my ScriptAliasMatch command and is just trying to serve a non-existant index.html file, or failing that the whole html directory. But _why_ is it ignoring this command? Any ideas on how to get this to work? Thanks in advance, Cheers --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org