[web-devel] Re: wai-fastcgi

Mark Bradley barkmadley at gmail.com
Mon Jul 26 08:44:43 EDT 2010


okay so my config is a little off (don't need the http://).  But
non-the-less I cannot seem to find a way to start a yesod app as a
fastcgi process (I don't really have and experience with fastcgi).

Apparently apache and lighttpd start fastcgi processes for you so they
don't have my problem, but I at least want to give nginx a go.

Mark

On Mon, Jul 26, 2010 at 7:36 PM, Mark Bradley <barkmadley at gmail.com> wrote:
> I've spent a bit of time trying to setup a yesod app under nginx using
> fastcgi.  The server config looks a little like this (statics get
> served by nginx which is nice)
>
> server {
>        listen       80;
>        server_name  domain.com;
>
>        access_log  #
>        error_log   #
>
>        location ~ ^/s/.* {
>            root /path/to/static/static;
>        }
>
>        location ~ ^/ {
>            include /etc/nginx/fastcgi_params;
>            fastcgi_pass http://127.0.0.1:3000;
>        }
> }
>
> unfortunately I couldn't get the wai-handler-fastcgi package to run properly.
>
> Server: user error (FCGX_Accept failed with error code: -88)
>
> I couldn't find error code -88 easily and I am guessing that I need to
> set a particular port for the app to run on, unfortunately I didn't
> see any way to do this through the wai api? (it does appear the
> wai-handler-snap's run function takes an Int...)
>
> I'm just a little confused at the moment.
>
> Regards,
> Mark
>


More information about the web-devel mailing list