Completely re-written to support verbose configuration options and provide support for Apache2.