Sun Java System Web Server 6.1 SP11 Administrator's Guide

Specifying a Windows CGI Directory

To specify a Windows CGI-only directory, perform the following steps.

ProcedureTo specify windows CGI-only directory

  1. From the Class Manager, choose the Programs tab.

  2. Click the WinCGI Directory link.

    The WinCGI Directory window appears.

  3. In the URL Prefix text field, enter the URL prefix you want to use for this directory.

    The text you type appears as the directory for the Windows CGI programs in URLs. For example, if you type wcgi-programs as the URL prefix, all URLs to these Windows CGI programs have the following structure:

    Note –

    The URL prefix you specify can be different from the real Windows CGI directory you specify in Specifying a Windows CGI Directory.

  4. Choose whether you want to enable script tracing.

    Click the Yes or No radio button under “Enable Script Tracing?”.

    CGI parameters are passed from the server to Windows CGI programs through files, which the server normally deletes after the Windows CGI program finishes execution. If you enable script tracing, these files are retained in a /temp directory or wherever the environment variables TMP and TEMP are pointing. Also, any window that the Windows CGI program brings up is shown when script tracing is enabled.

  5. In the WinCGI Directory field, enter the location of the directory as an absolute path.

    Note that this directory doesn’t have to be under your document root. This is the reason that you need to specify a URL prefix in Specifying a Windows CGI Directory.

  6. Click OK.

  7. Save and apply your changes.

    To remove an existing Windows CGI directory, click that directory’s Remove button in the Windows CGI Directory form. To change the URL prefix or Windows CGI directory of an existing directory, click that directory’s Edit button.

    Copy your Windows CGI programs into the directories you’ve specified. Remember that any file in those directories is processed as a Windows CGI file.