Chapter 5. Writing a Content Generator

In principle, one can do anything with the Common Gateway Interface (CGI).[1] But the range of problems for which CGI provides a good solution is much smaller!

The same is true of a content generator in Apache. It lies at the heart of processing a request and of building a web application. Indeed, it can be extended to do anything that the underlying system permits the webserver to do. The content generator is the most basic kind of module in Apache.

All of the major traditional applications normally work as content generators. For example, CGI, PHP, and application servers proxied by Apache are content generators.

5.1. The HelloWorld Module

In this chapter, we will develop a simple content generator. ...

Get The Apache Modules Book: Application Development with Apache now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.