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