You can configure CGI programs to have the file extensions .cgi, .exe, or .bat. The programs can be located in any directory in or under the document root directory of the virtual server.
By default, the file extensions for CGI programs are .cgi, .exe, and .bat. However, you can change which extensions indicate CGI programs by the following line in the MIME types file:
Restart the server after editing mime.types.
Service fn="send-cgi" type="magnus-internal/cgi"
For more information on configuring CGI for your server, see the Configuring CGI Subsystem for Your Server in Sun Java System Web Server 7.0 Update 8 Administrator’s Guide.