[Haskell-cafe] Static linking problem // CentOS 5.5 - GHC 6.12.3

frode k mailinglist at klevstul.com
Wed Mar 16 11:24:10 CET 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110316/132f2750/attachment.htm>


More information about the Haskell-Cafe mailing list