Just for completeness. Is this your current setup or is there anything in between? client <-> apache <-> cgi