[Haskell-cafe] Hack (web) and apache configuration

Anton van Straaten anton at appsolutions.com
Thu Jun 25 13:01:33 EDT 2009

Henry Laxen wrote:
> I have tried several things, the most recent being:
> RewriteEngine on
> RewriteRule ^/(.*)$ /hackTest?input=$1 [T=application/x-httpd-cgi]
> <Location />
>     SetHandler fastcgi-script
>     Options ExecCGI FollowSymLinks
> </Location>
> but the pathInfo field is always null.  

Path info is path-like data that directly follows the name of the 
resource being referenced, e.g.: /myfiles/foo.html/this/is/path/info

A rule that would give you path info in the case you describe would be 
more like this:

   RewriteRule ^/(.*)$ /hackTest/$1 [T=application/x-httpd-cgi]

Whether that works depends on how /hackTest is being dispatched, but if 
Hack expects pathinfo, then it may just work.


More information about the Haskell-Cafe mailing list