Feeds

The Apache Modules Book

Is this the missing Apache manual?

7 Elements of Radically Simple OS Migration

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). ®

Endpoint data privacy in the cloud is easier than you think

More from The Register

next story
PEAK LANDFILL: Why tablet gloom is good news for Windows users
Sinofsky's hybrid strategy looks dafter than ever
Leaked Windows Phone 8.1 Update specs tease details of Nokia's next mobes
New screen sizes, dual SIMs, voice over LTE, and more
Fiendishly complex password app extension ships for iOS 8
Just slip it in, won't hurt a bit, 1Password makers urge devs
Mozilla keeps its Beard, hopes anti-gay marriage troubles are now over
Plenty on new CEO's todo list – starting with Firefox's slipping grasp
Apple: We'll unleash OS X Yosemite beta on the MASSES on 24 July
Starting today, regular fanbois will be guinea pigs, it tells Reg
Another day, another Firefox: Version 31 is upon us ALREADY
Web devs, Mozilla really wants you to like this one
Secure microkernel that uses maths to be 'bug free' goes open source
Hacker-repelling, drone-protecting code will soon be yours to tweak as you see fit
Cloudy CoreOS Linux distro declares itself production-ready
Lightweight, container-happy Linux gets first Stable release
prev story

Whitepapers

7 Elements of Radically Simple OS Migration
Avoid the typical headaches of OS migration during your next project by learning about 7 elements of radically simple OS migration.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
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.
Solving today's distributed Big Data backup challenges
Enable IT efficiency and allow a firm to access and reuse corporate information for competitive advantage, ultimately changing business outcomes.
A new approach to endpoint data protection
What is the best way to ensure comprehensive visibility, management, and control of information on both company-owned and employee-owned devices?