Thanks for the hint.
I've previously read the HOWTO: Using CGI and FastCGI page but didn't understand where the following setting
VirtualHost {
...
ExecuteCGI = yes
}
went. Now that I've read the HIAWATHA manual page and:
SECTIONS
The binding, directory, FastCGI, virtual host and URL toolkit configuration must be placed inside sections ...
I now understand.
In terms of making CGI work, I'm not currently using a virtual host so CGI still didn't work with the following:
# COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications. Use the 'php-fcgi'
# tool to start PHP as a FastCGI daemon.
#
#CGIhandler = C:\Program Files\PHP5\php-cgi.exe:php
CGIhandler = C:\Program Files\Hiawatha\bin\ssi-cgi.exe:shtml
CGIextension = cgi
VirtualHost {
Hostname = 127.0.0.1
WebsiteRoot = C:\wwwroot
ExecuteCGI = yes
}
in hiawatha.conf.
However, CGI works after I added ExecuteCGI = yes to the Default Website settings in hiawatha.conf:
# DEFAULT WEBSITE
# It is wise to use your IP address as the hostname of the default website
# and give it a blank webpage. By doing so, automated webscanners won't find
# your possible vulnerable website.
#
Hostname = 127.0.0.1
WebsiteRoot = C:\wwwroot
StartFile = index.html
AccessLogfile = C:\Program Files\Hiawatha\log\access.log
ErrorLogfile = C:\Program Files\Hiawatha\log\error.log
ExecuteCGI = yes
Thanks for your prompt responses!