Yaws and moinmoin

jj1bdx edited this page Sep 3, 2011 · 3 revisions

Running MoinMoin on Yaws is easy, with spawn-fcgi (git page at stbuehler.de) used as the FastCGI interface for MoinMoin.

This is an example for serving MoinMoin with the IP address port 23456 through Yaws, with the backend spawn-fcgi running at port 23457.


<server moin.example.org>
    port = 23456
    listen =
    listen_backlog = 100
    docroot = /home/yaws/docs/moin.example.org
    fcgi_app_server =

/home/yaws/docs/moin.example.org/ contains:

index.yaws <- redirection script to call moin.fcgi
moin.fcgi  <- a dummy file for invoking FastCGI
htdocs/    <- directory of the static contents (served by Yaws)


out(_Arg) ->
    {redirect_local, "/moin.fcgi";}.


  • The actual moin.fcgi is invoked from spawn-fcgi. A ucspi-tcp tcpserver run file example:

      PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin; export PATH
      exec 2>&1
      exec setuidgid www \
       /usr/local/bin/spawn-fcgi \
       -n \
       -a -p 23457 \
       -d /home/moin \
       -- \
      # end of run file
  • The MoinMoin URL is at http://moin.example.org/moin.fcgi

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.