To Configure Apache on a UNIX Server

If you are using the Apache HTTP server on a UNIX machine, a small shell script is required to invoke the runtime and your COBOL CGI program. Depending on your Web server settings, you may need to place this script in a particular directory (called a ScriptAlias directory in Apache), or you may need to assign it a particular extension, such as ".cgi". In Apache, you normally set extensions using the AddHandler directive.

A typical script to invoke an ACUCOBOL-GT program called "myprog.acu" might look like this:

#!/bin/sh
RUNTIME=/usr/acucobol/bin/runcbl
exec $RUNTIME –f –b myprog.acu

Note that both the "-f" and "-b" runtime options are specified. These options are described in the following sections.