I had missed out some settings in the configuration files of lighttpd.<div><br></div><div>Summary:</div><div>- I renamed the Haskell test file to &quot;haskell.hcgi&quot;</div><div>- I edited &quot;/etc/lighttpd/conf.d/cgi.conf&quot; and added two entries in the cgi.assign section, one for &quot;.hcgi&quot; and one for &quot;.hs&quot; (the latter one only to enable running of .hs files / uncompiled Haskell code for testing purposes).</div>

<div><br></div><div>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</div><div><div>cgi.assign                 = ( &quot;.pl&quot;  =&gt; &quot;/usr/bin/perl&quot;,</div><div>                               &quot;.cgi&quot; =&gt; &quot;/usr/bin/perl&quot;,</div>

<div>                               &quot;.rb&quot;  =&gt; &quot;/usr/bin/ruby&quot;,</div><div>                               &quot;.erb&quot; =&gt; &quot;/usr/bin/eruby&quot;,</div><div>                               &quot;.py&quot;  =&gt; &quot;/usr/bin/python&quot;,</div>

<div>                               &quot;.hcgi&quot;=&gt; &quot;&quot;,</div><div>                               &quot;.hs&quot;  =&gt; &quot;/usr/haskell/bin/runhaskell&quot;)</div></div><div><div>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</div>

<div><br></div><div>After a lighttpd restart I can now access both .hs files (for testing purposes, since performance assumingly won&#39;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 &quot;.cgi&quot; pointing to empty (&quot;&quot;) in stead of adding a new entry for &quot;.hcgi&quot; / Haskell CGI.</div>

<div><br></div><div>Regards,</div><div>Frode</div><div></div></div>