(2012-03-12)
I decided to brush up on my C++ my making an apache module. The problem is that modules are usually written in C, and I couldn't find any up to date example code in C++.
There is something in C++ at codea, but it is over 10 years since the last update, and the documentation is not complete.
There is also the Apache API C++ Cookbook but this is for Apache 1.3.
I am following The Apache Modules Book, so I converted the mod_helloworld example therein to run through the g++ compiler. Then you can continue the rest of the program in C++. To do this I used elements from the Makefile in the Apache API C++ Cookbook above.