CGI and .htaccess Question

Hello everyone.

I’m having a bit of an issue with CGI on my server, and I’m fairly certain it’s an issue regarding the .htaccess for the directory.

I use a piece of software called Inspiration Pad Pro 3 which is pretty much a program that generates custom tables that people typically use for roleplaying games.

They’ve released executables meant to be run on servers as CGI scripts. As part of the setup, I am told to include this into the .htaccess:

Action application/x-httpd-ipad ipad3cgi AddType application/x-httpd-ipad ipt

The purpose for this is so that the *.ipt files are executed by ipad3cgi, which runs the table and dumps out html. (I have run the executable in the console and it outputs just fine.)

However, when I try to access an *.ipt file, I get this error:

[quote]Bad Request

Your browser sent a request that this server could not understand.[/quote]

You can see it for yourself by clicking here.

Any advice as to what I am doing wrong?

Perhaps Apache wants something more like this in the .htaccess file?

Options +Includes AddType application/x-httpd-ipad .ipt Action application/x-httpd-ipad /cgi-bin/ipad3cgi.exe

Have you set the “executable” bit of the ipad3cgi.exe file?
( chmod a+x ipad3cgi.exe )

What happens if you try to run the executable as a “normal” cgi script – i.e., in your web browser you type

, replacing “cgi-bin” with wherever it is you’ve put the executable?

[quote=“Zakharov, post:1, topic:61021”]…