Test the configuration (Windows)

Steps

  1. From an MS-DOS prompt on the Windows machine, execute the query_contents program from the CGI directory as follows:
    MSDOS> query_contents dirlist=/
    You should see something similar to the following output:
    100
    index.html
    cgi-bin//
    pics//

    The number 100 is a return status that indicates success. It is most important to see at least the number 100 as the first (and perhaps only) value.

    If you see an error code instead, then the configuration file is not in the correct place, or does not contain a valid document root entry. Check the configuration of the query_contents.cfg file and make sure the document root exists.

  2. From a browser, enter the following URL:
    http://windows-machine-name/cgi-bin/query_contents.exe?dirlist=/

    This URL should return the same result as the preceding step. If it does not return this result, the CGI configuration of our Web server is not correct. See the server's documentation to correct the problem.

Parent topic: Install query_contents on Windows-based Web servers