Thanks for the suggestion!
In my case I'd just forgotten that cgi script output needs the Content-type header. The simplest test.cgi script is thus:
echo "Content-type: text/plain"
Ironically, if I had been testing using my real cgi scripts it would've worked just fine!
(Thanks to some support lady named Jennifer for pointing out my stupid mistake!)