Squirm - A redirector for Squid, like mod_rewrite in Apache
see http://squirm.foote.com.au/
Squirm is a fast & configurable redirector for the Squid Internet Object Cache. It requires the GNU Regex Library (now included in the Squirm source), and of course, a working Squid. It is available free under the terms of the GNU GPL.
Squirm has the following features:
- Very, very fast
- Virtually no memory usage
- It can re-read it's config files while running by sending it a HUP signal
- Interactive test mode for checking new configs
- Full regular expression matching and replacement
- Config files for patterns and IP addresses.
- If you mess up the config file, Squirm runs in Dodo Mode so your squid keeps working :-)
I started writing it because the existing redirector scripts used too much memory and all were too slow for Squids that receive a lot of requests.
Configuring Squirm, FreeBSD example:
/usr/local/etc/squirm/squirm.conf
begin network 0.0.0.0/0 log /var/squid/logs/squirm-private-match.log #abort-log /var/squid/logs/squirm-private-abort.log pattern common.patterns all end
/usr/local/etc/squirm/common.patterns
regexi ^http://tucows\.[^/]*/(.*$) http://tucows.mymirror.com/\1 ^http://tucows. abort .gif abort .html abort .jpg abort .htm regex .*/c16e401\.jar$ http://redirector1.senet.com.au/c16e401.jar c16e401.jar$ regexi .*/c32e401\.jar$ http://redirector1.senet.com.au/c32e401.jar c32e401.jar$ regex .*/cb16e401\.exe$ http://redirector1.senet.com.au/cb16e401.exe cb16e401.exe$ regex .*/cb32e401\.exe$ http://redirector1.senet.com.au/cb32e401.exe cb32e401.exe$ regex .*/cc16e401\.exe$ http://redirector1.senet.com.au/cc16e401.exe cc16e401.exe$ regex .*/cc32e401\.exe$ http://redirector1.senet.com.au/cc32e401.exe cc32e401.exe$
Date: 2012-01-19 22:33:18 and last modified: 2012-01-19 22:45:13
Recent entries:
- Emacs rainbow mode
- Squirm a url rewriter for squid
- How to use rsync for transferring files over ssh
- Vide: GRE tunnel
- Video: how to install freebsd
- Video: Install zend framework
- Video: Install Window7 from network
- Install Window7 from a PXE Boot server (Linux/FreeBSD)
- Create GRE tunnel with FreeBSD8
- What's cooking for FreeBSD 9