Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 80312 invoked from network); 9 Jul 2010 09:05:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Jul 2010 09:05:24 -0000 Received: (qmail 34285 invoked by uid 500); 9 Jul 2010 09:05:22 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 33817 invoked by uid 500); 9 Jul 2010 09:05:17 -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 33805 invoked by uid 99); 9 Jul 2010 09:05:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 09:05:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tw@dionic.net designates 81.2.78.41 as permitted sender) Received: from [81.2.78.41] (HELO rodan.dionic.net) (81.2.78.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 09:05:09 +0000 Received: from zen.wifi.dionic.net ([10.0.1.50]) by rodan.dionic.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OX9Sl-0008OT-U3 for users@httpd.apache.org; Fri, 09 Jul 2010 10:01:39 +0100 Message-ID: <4C36E56F.7020907@dionic.net> Date: Fri, 09 Jul 2010 10:01:35 +0100 From: Tim Watts User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100527 Mnenhy/0.8.2 Thunderbird/3.0.5 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: users@httpd.apache.org References: <4C36FCBC.B953.0092.0@atriummc.nl> In-Reply-To: <4C36FCBC.B953.0092.0@atriummc.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Dionic-Trusted: authuser X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Re: Execute CGI (or FastCGI or PHP) on missing target file On 09/07/10 09:41, Joost Heer, de wrote: >> Specifically, what I'd like to do is to be able to execute one named CGI >> (probably under FastCGI) where Apache cannot find an existing target >> file (ideally with named extensions like .html but that's not so >> important) after URL-path translation phase. > > ErrorDocument 404 /cgi-bin/template.cgi > > See http://httpd.apache.org/docs/2.2/custom-error.html for environment variables you can use in the CGI. > > Joost > > Doh. Why didn't I think of that - seems very simple and elegant :) I've just read it through and I don't see any problems (I presume I can stop it sending a 404 code - I'll look into that). Jut have to toss up between HTML::Template and Mason now. One immediate advantage to using a smart templating system is I can hide the page menus from the Google Spider which should improve the indexing of the site (right now, Google guesses the main target page pretty well but lists lots of the other pages too if the keyword is a menu item). Thank you very much Joost :) Cheers Tim --------------------------------------------------------------------- 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