Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 16753 invoked from network); 7 Apr 2006 13:51:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Apr 2006 13:51:42 -0000 Received: (qmail 26402 invoked by uid 500); 7 Apr 2006 13:51:28 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 26392 invoked by uid 500); 7 Apr 2006 13:51:28 -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 26381 invoked by uid 99); 7 Apr 2006 13:51:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2006 06:51:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 66.249.82.204 as permitted sender) Received: from [66.249.82.204] (HELO xproxy.gmail.com) (66.249.82.204) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2006 06:51:27 -0700 Received: by xproxy.gmail.com with SMTP id s12so309929wxc for ; Fri, 07 Apr 2006 06:51:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=t72hhtNvSPLp1dcDTikXJ0cOwdXHwnLxIoegXG0lFnobjQTNwRMb63LaRYElut9J9eeUTpaemskn+Nh6gJ1ZjGVNMzzGOeg/lQOi28mg9zC+ebBmV7O6uYP6cnsjX6yJY8G4aFRm1yxH3EQ+5i1U3KaW1LLc2qaHKv/Nb2+XDOg= Received: by 10.70.21.4 with SMTP id 4mr2526469wxu; Fri, 07 Apr 2006 06:51:07 -0700 (PDT) Received: by 10.70.40.10 with HTTP; Fri, 7 Apr 2006 06:51:07 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 09:51:07 -0400 From: "Joshua Slive" Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: <4436699B.3070604@swehack.se> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4436699B.3070604@swehack.se> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Using an Alias as second argument to Action X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 4/7/06, nocturnal wrote: > Hi > > I'm using Action on a handler created by AddHandler and it works just > fine but Action takes a virtual path as second argument so the file must > be in the web root directory for the vhost. I'd like to use a predefined > Alias pointing to a global place in the file system for the Action. This > is an example of what i'm doing right now. > > > > AddHandler php-v4 .php > Action php-v4 /cgi-bin/program.cgi > > > > This works but requires us to put the binary executable file in each web > root directory for each vhost. This is what we want to do but it > produces 500 errors. > > Alias /cgi-bin /usr/home/cgi-bin > > > AddHandler php-v4 .php > Action php-v4 /cgi-bin/program.cgi > > > > I'm using Apache HTTPD 2.2.0 for all of this. And what is in the error log? In general, I don't see the point in the complication of Action when you can simply do AliasMatch (.*)\.php$ /usr/home/cgi-bin/program.cgi/$1 (although this may require small changes in your script). Joshua. --------------------------------------------------------------------- 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