Wednesday, August 23, 2006

Writing Apache 2.x Filters

I'm writing a Apache 2.x output filter to append arbitrary query parameter variables to all the urls in the response body. Some of the references online that helped me get started on the output filter are listed below. For the actual work of finding the url tags, extracting the url and appending the required query param, I'm using a Lex scanner. (no parser required).

Flex Resources:

Apache Reference Online:

http://wendtstud1.hpi.uni-potsdam.de

This is the website. Most of the pages are in German; but you can make out.
The specific presentation I was talking about are here:
http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2003/presentations/

Then, there is http://f-m-c.org/projects/apache/index.php . This was the output of a project by the same university.

For Apache Filters,
http://www.projectcomputing.com/resources/apacheFilterFAQ/index.html
http://httpd.apache.org/docs/2.2/filter.html

Specifically about output filters:
http://www.onlamp.com/pub/a/apache/2001/09/13/apache_2.html

About bucket brigades:
http://www.apachetutor.org/dev/brigades

Many other articles by Ryan Bloom (the APR guy)
http://www.onlamp.com/pub/ct/38
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

0 comments: