httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael del Aguila" <raguila.fis...@gmail.com>
Subject [users@httpd] How to invoke CGI program without using its file extension?
Date Thu, 05 Oct 2006 09:50:37 GMT
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.

Mime
View raw message