From users-return-67218-apmail-httpd-users-archive=httpd.apache.org@httpd.apache.org Thu Oct 05 10:48:46 2006 Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 12930 invoked from network); 5 Oct 2006 10:48:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2006 10:48:46 -0000 Received: (qmail 11000 invoked by uid 500); 5 Oct 2006 10:48:32 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 10974 invoked by uid 500); 5 Oct 2006 10:48:32 -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 10950 invoked by uid 99); 5 Oct 2006 10:48:32 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Oct 2006 03:48:32 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=steve.j.swift@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.82.225] ([66.249.82.225:28158] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 18/23-20288-1E2E4254 for ; Thu, 05 Oct 2006 03:48:12 -0700 Received: by wx-out-0506.google.com with SMTP id s19so497836wxc for ; Thu, 05 Oct 2006 03:46:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fm+CKVpgUBsBxtbWDmB6Qfe4m3wphJk+ipLxMKraDp8VVe4FsG4D9cj3fFIFUYgjqh0GlYd0viD6st72vq9sGGZcAPlGOJyMTHqh8em+VNntXVwiWlpi86/JE9WopY4PYhzqaptqNI5cjAhg/PQ+i6PbBIXyneEB8bjUkmmPHTc= Received: by 10.90.105.19 with SMTP id d19mr683668agc; Thu, 05 Oct 2006 03:46:47 -0700 (PDT) Received: by 10.90.96.14 with HTTP; Thu, 5 Oct 2006 03:46:47 -0700 (PDT) Message-ID: Date: Thu, 5 Oct 2006 11:46:47 +0100 From: "Steve Swift" To: users@httpd.apache.org In-Reply-To: <194f4cd50610050250s4f4a6b53q6cc5a4d212c9bf45@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_136203_6768502.1160045207159" References: <194f4cd50610050250s4f4a6b53q6cc5a4d212c9bf45@mail.gmail.com> Subject: Re: [users@httpd] How to invoke CGI program without using its file extension? X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_136203_6768502.1160045207159 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline If you want to run a cgi program without using its extension you should look into using the ScriptAlias or ScriptAliasMatch directives. On 05/10/06, Rafael del Aguila wrote: > > Hi, > > I'd like to know how can Apache2 run a cgi program without using its file > extension. > > In my Apache 1.3 (on Windows 2K) I can use > http://my.server.com/cgi-bin/program.exe?Parameter=Value..... > > or > http://my.server.com/cgi-bin/program?Parameter=Value...... > > to execute a .exe cgi program, and both urls work ok. > > But in Apache2 (installed on the same server) > http://my.server.com/cgi-bin/program?Parameter=Value..... > fails with > error 404 Not Found > The requested URL /cgi-bin/program was not found on this server. > > However > http://my.server.com/cgi-bin/program.exe?Parameter=Value..... > works ok > > Why? Was it a bug in 1.3 realese? Is it a configuration issue? > > I would like to run cgi program without using its file extension. > > > Thanks in advance for your help. > > -- Steve Swift http://www.swiftys.org.uk ------=_Part_136203_6768502.1160045207159 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline If you want to run a cgi program without using its extension you should look into using the ScriptAlias or ScriptAliasMatch directives.

On 05/10/06, Rafael del Aguila <raguila.fisica@gmail.com> wrote:
Hi,

I'd like to know how can Apache2 run a cgi program without using its file extension.

In my Apache 1.3 (on Windows 2K) I can use
http://my.server.com/cgi-bin/program.exe?Parameter=Value.....
or
http://my.server.com/cgi-bin/program?Parameter=Value......
to execute a .exe cgi program, and both urls work ok.
 

But in Apache2 (installed on the same server)
http://my.server.com/cgi-bin/program?Parameter=Value.....
fails with
error 404 Not Found
The requested URL /cgi-bin/program was not found on this server.

However
http://my.server.com/cgi-bin/program.exe?Parameter=Value.....
works ok

Why? Was it a bug in 1.3 realese? Is it a configuration issue?

I would like to run cgi program
without using its file extension.


Thanks in advance for your help.





--
Steve Swift
http://www.swiftys.org.uk ------=_Part_136203_6768502.1160045207159--