Код в студию.

ББ:
MODULE mycgi;
IMPORT Term := Terminal_mod;

PROCEDURE Start*;
BEGIN
Term.InitAtomic;
Term.BeginAtomic;
Term.String('content-type: text/html'); Term.Ln; Term.Ln;
Term.String('<HTML>'); Term.Ln;
Term.String('<BODY>'); Term.Ln;
Term.String('<P>'); Term.Ln;
Term.String("Hello, business!!!"); Term.Ln;
Term.String('</P>'); Term.Ln;
Term.String('</BODY>'); Term.Ln;
Term.String('</HTML>'); Term.Ln;
Term.EndAtomic;
Term.FreeConsole;
END Start;
BEGIN
Start;
END mycgi.

XDS:

<*+MAIN*>
MODULE hello;
IMPORT
Out;
BEGIN
Out.String('content-type: text/html'); Out.Ln; Out.Ln;
Out.String('<HTML>'); Out.Ln;
Out.String('<BODY>'); Out.Ln;
Out.String('<P>'); Out.Ln;
Out.String("Hello, business!!!"); Out.Ln;
Out.String('</P>'); Out.Ln;
Out.String('</BODY>'); Out.Ln;
Out.String('</HTML>'); Out.Ln;
END hello.

Про логи апача еще не разбирался. Версия индейца httpd-2.2.15-win32-x86-no_ssl.msi