Install query_contents on Windows-based Web servers
The following steps describe the installation of query_contents on back-end Windows-based Web servers.
Steps
- Locate the executable program named query_contents.exe and the configuration file named query_contents.cfg in the LMI. Go to Web > Tools > Query Site Contents.
- Ensure the back-end Web server has a CGI directory correctly configured.
- For testing purposes, ensure that a valid document exists in the document root of the back-end Web server.
- Copy query_contents.exe into the cgi-bin directory of the back-end Web server. Consult the appropriate documentation for the Web server to identify the location of this directory.
- Copy query_contents.cfg into the "Windows" directory. Default values for this directory are shown in the table below:
Operating System Windows Directory Windows c:\windows
- Edit the query_contents.cfg file to correctly specify the document root directory for the back-end Web server. The file contains a default value for the IBM HTTP Server (version 6.0):
[server] docroot="C:/Program Files/IBM HTTP Server/htdocs/en_US"
- Specify query_contents.exe as the correct file name for WebSEAL to use using the -q location option when creating a junction to the back-end Web server.
The -q location option and argument provides WebSEAL with the correct name of the file and where to find the file. For example, assuming other options are additionally selected:
pdadmin> server task default-webseald-www.example.com create -t tcp -h host-name <...> -q /cgi-bin/query_contents.exe \junction-name
The location argument value is used in the actual URL string that calls the query_contents program. For example:
http://windows-machine-name/cgi-bin/query_contents.exe?dirlist=/
Parent topic: How to generate a back-end server Web space (query_contents)