I am migrating to apache httpd 2.4 on windows xp. The current server currently has exe programs that execute as cgi programs. When I try to use one of these links, apache just servers the programs as files for download. How do I configure my httpd.conf to run these instead of download them?
Well, simple answer is your server is not support for cgi execution. Apache generally requires file extension to determine how to handle a file. On DH, files with the extension .cgi are executed by Apache. Most likely, DH's Apache config file contains the following directive: AddHandler cgi-script .cgi In an .htaccess file, you can specify other extensions to run as CGI. For example: AddHandler cgi-script .exe http://httpd.apache.org/docs/current/mod/mod_mime.html#addhandler The simplest solution for you is probably to just add the .cgi extension to your binary CGI programs. Then Apache will run them as CGI programs. It may be possible to have Apache run CGI programs without extension by using the FilesMatch directive. Possibly something like this (untested): <FilesMatch "myprogram$"> SetHandler cg-script </FilesMatch> http://httpd.apache.org/docs/current/mod/core.html#filesmatch For more. http://httpd.apache.org/docs/2.2/howto/cgi.html