hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Using MouseHole on LightTPD or Apache2 #

by why in inspect

If you’re on Linux/BSD/OSX and you’d like to give MouseHole a power-up, try out the new LightTPD support, just checked into CVS. Runs much better than WEBrick and uses the same API! Apache2+mod_ruby support is also checked in, but it still really needs some work. (As usual, contributors welcome.)

 cvs -d :pserver:anonymous@rubyforge.org:/var/cvs/mousehole login
 cvs -d :pserver:anonymous@rubyforge.org:/var/cvs/mousehole co mouseHole

And you’ll have a checked-out copy.

LightTPD MouseHole

You’ll need LightTPD, FastCGI, and FCGI-Ruby installed. Head to your checked out copy of MouseHole and run:

 bin/mouseHole -s lighttpd

You can pass in all the typical commandline options as well, if you like.

 bin/mouseHole -s lighttpd --no-tidy 127.0.0.1 3704

Logs for script errors are stored in ~/.mouseHole/log. If you’d like to inspect the generated LightTPD configurations, see ~/.mouseHole/temp/lighttpd.

Apache2 MouseHole

You’ll need Apache2 (I believe earlier Apaches will work as well) and mod_ruby. Then, go to your checked out copy of MouseHole and run:

 bin/mouseHole -s apache2

To stop Apache:

 apache2ctl -f ~/.mouseHole/temp/apache/httpd.conf -k stop

Again, all the commandline options should work as well. Logs are stored in the same place as above. If you want to inspect or tweak the Apache configuration, see ~/.mouseHole/temp/apache2.

said on 15 Oct 2005 at 14:47

This is awesome! What if mouseHole could replace DansGuardian as a full-service filtering proxy? I currently use DG to filter my schools’ net access and will investigate doing so with mouseHole when I get home from RubyConf.

said on 15 Oct 2005 at 23:03

Filtering scripts like that are a cinch. I’m also considering switching to KirbyBase for the database to give you some better querying (for the wordlists and banned URLs or whatever it is that the guardian does.)

said on 15 Oct 2005 at 23:08

Heh. I’m sitting here at RubyConf working on a Mousehole script that uses KirbyBase. What I’ve learned this weekend is that if I just wait 30 minutes or so, someone else will probably implement what I’m thinking about.

said on 16 Oct 2005 at 02:34

Defiler: but we cannot have everyone thinking that.

said on 16 Oct 2005 at 15:49

Sorry, for not keeping up, but could someone explain what MouseHole does?

said on 16 Oct 2005 at 19:46

mark: It’s a scriptable proxy for rewriting the web and trading little web apps. Visual tours are here and here.

said on 16 Oct 2005 at 20:00

Defiler: I know what you mean. My take on it is that great minds think alike, or _why has turned some of our brain cells into spies. I hate traitors!

Comments are closed for this entry.