httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Swift" <steve.j.sw...@gmail.com>
Subject Re: [users@httpd] How to invoke CGI program without using its file extension?
Date Thu, 05 Oct 2006 10:46:47 GMT
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.....
> <http://my.server.com/cgi-bin/program.exe?Parameter=Value>
> or
> http://my.server.com/cgi-bin/program?Parameter=Value......
> <http://my.server.com/cgi-bin/program.exe?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.....<http://my.server.com/cgi-bin/program.exe?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.....<http://my.server.com/cgi-bin/program?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

Mime
View raw message