So I feel like I have been on crazy pills all day. Been a happy user of Hiawatha for several years. Today I try to configure it on a new box. CGI just won't work. At all.
The only error message is
127.0.0.1|/srv/http/hiawatha/test.cgi|no output
This seems to pop up every other month or so on the forums. But before you say the obvious, it is executable and produces output.
hiawatha.conf, simple and boring:
ServerId = http
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
#CommandChannel = 81,4eae35f1b35977a00ebd8086c259d4c9
Binding {
Port = 80
#Interface = 127.0.0.1
}
Hostname = 127.0.0.1
WebsiteRoot = /srv/http/hiawatha
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
CGIextension = cgi
#WaitForCGI = no
ExecuteCGI = yes
TimeForCGI = 30
/srv/http/hiawatha/test.cgi:
#! /bin/bash
echo -e "Content-Type: text/html\r\n\r\n"
echo -e "<html><body>one hand clapping</body></html>"
Am I missing something embarrassingly obvious?
Hiawatha version: 7.8
Operating System: Arch Linux 64 bit