Kevin Marsh

Junebug and Nginx

So I came across Junebug today, which is a slick wiki engine that harnesses the power of Camping and gives you a nice-looking wiki that's contained in one directory.

Here's what I did to get it setup and running and proxied through nginx:

  1. Install Junebug (you'll need Ruby Gems for this to work):

    $ sudo gem install junebug

  2. Create the wiki:

    $ junebug wiki

  3. Edit the config.yml file's url and feed parameters to the location we'll proxy it to, say http://example.com/wiki

  4. Edit your nginx.conf and add the following entries:


    upstream junebug {
      server 127.0.0.1:3301;
    }

    location /wiki {
      proxy_pass http://mongrel-kmw/wiki;
      proxy_redirect     off;
      proxy_set_header   Host   $host;
    }

    location /wiki/static { 
      root /home/kmarsh;
    }
  1. Fire it up!: ./wiki start (this daemonizes automatically)

  2. Restart nginx (send it HUP kill -HUP [nginx pid])

  3. Visit your wiki at the URL you specified above, maybe http://example.com/wiki

Others' Comments

  1. Marston said on November 23, 2006 @ 12:50 PM:

    Hey Kevin,

    good stuff, ill have to check out this wiki. I've always wanted to take a closer look at camping.

    hey btw, I can't find your email anywhere on this site. I'd like to contact you regarding some rails stuff, could you shoot me your email? thanks.

Your Comments

Your name:

Your email:

Your blog:

Your comment: