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

ProcedureTo Specify CGI Directories

You can specify a directory that contains only CGI programs. All files are run as programs regardless of the file extensions.

  1. In the Admin Console, Select the Common Tasks tab.

    1. >

  2. Select CGI Directories from the Virtual Server Tasks list.

    The CGI Directory window is displayed.

  3. Click New.

    The Add CGI Directory window is displayed.

  4. Specify the URI and path where the CGI programs are stored.

    For example, if you type cgi-bin as the URL prefix, then all URLs to these CGI programs have the following structure:

Example 3–1 Using the create-cgi-dir command

To specify the CGI directory by using the create-cgi-dir command:

./wadm create-cgi-dir --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri-prefix=/config1_urlprefix --directory=/cgi-dir