Using MouseHole on LightTPD or Apache2 #
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
.
danp
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.
why
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.)
Defiler
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.
MenTaLguY
Defiler: but we cannot have everyone thinking that.
mark
Sorry, for not keeping up, but could someone explain what MouseHole does?
why
mark: It’s a scriptable proxy for rewriting the web and trading little web apps. Visual tours are here and here.
MrCode
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.