Feeds

The Apache Modules Book

Is this the missing Apache manual?

Maximizing your infrastructure through virtualization

Review Subtitled Application Development With Apache, this is a book for web developers who want to take their web applications to the next level – running them inside their web servers.

Apache's modular architecture makes it possible to build applications into server modules, but there's a catch: there's not much documentation, and most of that is out of date.

Starting with a look at Apache and the history and philosophy of the Apache project, this book takes a good look at the Apache API. If you're going to build your own modules, you'll need to be familiar with the API and how you can use it to interact with the web server.

Apache development isn't just for the web server. The Apache Portable Runtime is also at the heart of tools like Subversion, so there's also plenty of information on how to work with APR, including how it can be used to access databases.

The APIs are only part of the story, and there's a lot of information about Apache coding conventions and about how modules work with data and communicate with each other. One key issue is working with callbacks and how Apache works around C's restrictions. There's also information on how to manage persistent data, something that's becoming more and more important with Web 2.0 style applications.

The first module the book shows you how to build is a simple Content Generator. It's a useful place to start, as the worked example shows how you can use an Apache module to deliver content to a web browser – which you'll need to do in nearly every module you'll write. The exercise also walks you through adding inputs and processing the HTTP data delivered to your module. Handling requests is an important piece of any web application, and module request handling gets it own chapter.

You'll also find one on access control – something that's critical if you're aiming to build a set of modules to deliver a secure web application. Apache lets you chain modules together, using them as data filters. This can be a complex process, but the book simplifies the design and development process, and clarifies much of the rationale for filter implementation.

There's a lot here – with the book covering everything from module configuration, to deployment, to extending the Apache API yourself. And, of course, any self-respecting development title wouldn't be the same without a chapter on debugging, and this book isn't an exception to the rule...

You don't need to be a C programmer to work with this book either. While many Apache modules are written in C, there's a lot of scope for working with any high level language, including dynamic languages like Ruby. Worked examples show how to develop modules, and API calls are clearly documented.

The Apache Modules Book

apache modules bookVerdict: There's a line of consumer IT books called the Missing Manuals. This clear, well-written and, above all, helpful book is, effectively, one of Apache's Missing Manuals. It plugs a well known hole in the online documentation, and gives you the tools you need to go out and build your own custom Apache modules.

Author: Nick Kew

Publisher: Prentice Hall

ISBN: 0-13-240967-4

Media: Book

List Price: £35.99

Current Reg price: £23.75 (inc VAT) Buy this book at Register Books at Reg Developer's special discounted price (subject to change). ®

Reducing security risks from open source software

More from The Register

next story
HIDDEN packet sniffer spy tech in MILLIONS of iPhones, iPads – expert
Don't panic though – Apple's backdoor is not wide open to all, guru tells us
Do YOU work at Microsoft? Um. Are you SURE about that?
Nokia and marketing types first to get the bullet, says report
Microsoft takes on Chromebook with low-cost Windows laptops
Redmond's chief salesman: We're taking 'hard' decisions
Cheer up, Nokia fans. It can start making mobes again in 18 months
The real winner of the Nokia sale is *drumroll* ... Nokia
EU dons gloves, pokes Google's deals with Android mobe makers
El Reg cops a squint at investigatory letters
Chrome browser has been DRAINING PC batteries for YEARS
Google is only now fixing ancient, energy-sapping bug
prev story

Whitepapers

Seven Steps to Software Security
Seven practical steps you can begin to take today to secure your applications and prevent the damages a successful cyber-attack can cause.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
Designing a Defense for Mobile Applications
Learn about the various considerations for defending mobile applications - from the application architecture itself to the myriad testing technologies.
Build a business case: developing custom apps
Learn how to maximize the value of custom applications by accelerating and simplifying their development.
Consolidation: the foundation for IT and business transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.