I had missed out some settings in the configuration files of lighttpd.

Summary:
- I renamed the Haskell test file to "haskell.hcgi"
- I edited "/etc/lighttpd/conf.d/cgi.conf" and added two entries in the
cgi.assign section, one for ".hcgi" and one for ".hs" (the latter one only
to enable running of .hs files / uncompiled Haskell code for testing
purposes).

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
cgi.assign                 = ( ".pl"  => "/usr/bin/perl",
                               ".cgi" => "/usr/bin/perl",
                               ".rb"  => "/usr/bin/ruby",
                               ".erb" => "/usr/bin/eruby",
                               ".py"  => "/usr/bin/python",
                               ".hcgi"=> "",
                               ".hs"  => "/usr/haskell/bin/runhaskell")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

After a lighttpd restart I can now access both .hs files (for testing
purposes, since performance assumingly won't be top notch here) and compiled
.hcgi files. If I did not need to use perl for .cgi I could have change the
setting for ".cgi" pointing to empty ("") in stead of adding a new entry for
".hcgi" / Haskell CGI.

Regards,
Frode
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to