Received: by taz.hyperreal.com (8.6.12/8.6.5) id HAA14947; Fri, 26 Apr 1996 07:03:42 -0700 Received: from localhost by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id HAA14929; Fri, 26 Apr 1996 07:03:35 -0700 From: Rob Hartill Message-Id: <199604261404.IAA02351> Subject: ScriptAlias-like extensions for perl etc To: new-httpd@mail.apache.org (apache) Date: Fri, 26 Apr 1996 08:04:27 -0600 (MDT) Organization: Internet Movie Database X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Content-Length: 883 Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com All my CGI is written in perl. As an experiment I changed mod_cgi.c to call the perl binary directly instead of leaving it to sh (I think that's what gets called to determine that perl needs to be called because of the "#!" first line.) I guess there must be an existing directive that could be reused to mark script extensions or entire directories to be passed to a binary instead of to sh. The change to mod_cgi.c is trivial.. execle(r->filename, argv0, NULL, env); becomes execle("/usr/local/bin/perl", argv0, r->filename, NULL, env); Speedups are not at all dramatic (running perl is a bigger overhead), but I can detect speedup by hammering on a CGI script and then looking at mod_status to compare the numbers. What'd be nice would be things like, CGIBinary /usr/local/bin/perl pl DefaultBinary /usr/local/bin/perl or something along those lines. thoughts? rob