Sun Java System Web Server 6.1 SP9 Administrator's Guide

ProcedureTo specify a CGI-only directory for a class of virtual servers

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

    The CGI Directory window appears.

  2. In the URL Prefix field, type the URL prefix to use for this directory. The text you type appears as the directory for the CGI programs in URLs.

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

    http://yourserver.domain.com/cgi-bin/program-name


    Note –

    The URL prefix you specify can be different from the real CGI directory you specify in the previous step.


  3. In the CGI Directory text field, type the location of the directory as an absolute path. This directory doesn’t have to be under your document root. This is the reason that you need to specify a URL prefix in the next step.

  4. Click OK.

  5. Save and apply your changes.

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

    Copy your CGI programs into the directories you’ve specified. Remember that any files in those directories will be processed as CGI files, so don’t put HTML files in your CGI directory.