Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 84267 invoked from network); 22 Sep 2004 23:05:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Sep 2004 23:05:35 -0000 Received: (qmail 51295 invoked by uid 500); 22 Sep 2004 23:05:14 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 51271 invoked by uid 500); 22 Sep 2004 23:05:13 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 51258 invoked by uid 99); 22 Sep 2004 23:05:13 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jslive@gmail.com designates 64.233.170.193 as permitted sender) Received: from [64.233.170.193] (HELO mproxy.gmail.com) (64.233.170.193) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 22 Sep 2004 16:05:12 -0700 Received: by mproxy.gmail.com with SMTP id 77so2273215rnk for ; Wed, 22 Sep 2004 16:05:10 -0700 (PDT) Received: by 10.38.79.75 with SMTP id c75mr3167658rnb; Wed, 22 Sep 2004 16:05:10 -0700 (PDT) Received: by 10.38.78.16 with HTTP; Wed, 22 Sep 2004 16:05:10 -0700 (PDT) Message-ID: Date: Wed, 22 Sep 2004 19:05:10 -0400 From: Joshua Slive Reply-To: Joshua Slive To: users@httpd.apache.org In-Reply-To: <20040922221351.GE15167@agora.hss.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20040922221351.GE15167@agora.hss.caltech.edu> X-Virus-Checked: Checked Subject: Re: [users@httpd] , Action and SetHandler X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Wed, 22 Sep 2004 15:13:51 -0700, Charles Hornberger wrote: > Hello, > > I'm trying to experiment with using CGI scripts and directives > to set up Apache handlers and am running into what, to me, looks like a > strange bit of behavior. As far as I can tell, Apache "refuses" to use a > CGI script as a handler unless a regular file corresponding to the > location given in the directive exists. In my opinion, the 2.0 behavior is correct. The point of Action is to process files. If the file doesn't exist, there is nothing to process. In 1.3 you needed to do 404 handling yourself because of this flaw. Your application would better make use of a simple ScriptAlias, as in Alias /static /home/charlie/test-handler ScriptAlias /cgi-bin /home/charlie/test-handler/cgi-bin ScriptAlias / /home/charlie/test-handler/cgi-bin/test-handler.cgi If you need something more complicated, you may need RewriteRules, of course. But it is much clearer in my opinion. Having said all that, version 2.1 (the development version) has an option on Action to allow "virtual" resources: http://httpd.apache.org/docs-2.1/mod/mod_actions.html#action 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