Apache httpd and CGI

services.httpd.enable = true;
services.httpd.adminAddr = "james@localhost";
services.httpd.extraModules = ["cgi"];

services.httpd.virtualHosts =
  [
    {
      documentRoot = "/var/www/";
      extraConfig = ''
    ScriptAlias "/cgi-bin/" "/var/www/cgi-bin/"
    <Location "/haskell-cgi">
      SetHandler haskell-handler
      Action haskell-handler "/cgi-bin/haskell-cgi" virtual
    </Location>
      '';
    }
  ];