You can use the Sun Java System Web Server’s MIME Types window to associate a file extension with the shell CGI feature. This is different from creating an association in Windows.
To associate a file extension with the shell CGI feature in the server. For example, you can create an association for files with the .pl extension. When the server gets a request for a file with that extension, the server knows to treat the file as a shell CGI file by calling the executable associated in Windows with that file extension.
To associate a file extension as a shell CGI file, perform the following steps.
Create the shell directory on your computer. This directory doesn’t have to be a subdirectory of your document root directory.
From the Server Manager, choose Server Preferences.
Click the MIME Types link.
The Global MIME Types window appears. For more information on the Global MIME Types, see Choosing MIME Types.
Add a new MIME type with these settings:
Content type: magnus-internal/shellcgi.
File Suffix: Enter the file suffixes that you want the server to associate with shell CGI. If you activated CGI, WinCGI, and shell CGI file types, you must specify a different suffix for each type of CGI. For example, you can’t use the suffix .exe for both a CGI program and a shell CGI program. If you need to, you can edit the other MIME type fields on the page so that the suffixes are unique.
Click the New Type button.
Save and apply your changes.