Sun Java System Web Server 7.0 Update 4 Administrator's Guide

Specifying a Shell CGI Directory (Windows)

To create a directory for your shell CGI files, perform the following steps.

ProcedureTo Create a Directory for your Shell CGI Files

  1. Create the shell directory on your computer. This directory does not have to be a subdirectory of your document root directory.

  2. From the Home page, select the virtual server and then go to the Edit Virtual Server>Content Handling>CGI (sub tab).

  3. In the CGI directories table, click New.

    A new window appears.

  4. In the URL Prefix field, enter the URL prefix you want to associate with your shell CGI directory.

    For example, suppose you store all shell CGI files in a directory called C:\docs\programs\cgi\shell-cgi, but you want users to see the directory as In this case, you would type shell as the URL prefix.

  5. In the Directory field, enter the absolute path to the directory you created.

    Note –

    The server must have read and execute permissions to this directory. For Windows, the user account the server runs as (for example, LocalSystem) must have rights to read and execute programs in the shell CGI directory.

  6. Select the CGI or Shell CGI option.

    Make sure that any files in the shell CGI directory also have file associations set in Windows. The server returns an error if it attempts to run a file that has no file-extension association.

  7. Click OK.