-
Chapter 1 Server-Side Programming with Apache
-
Web Programming Then and Now
-
The Apache Project
-
The Apache C and Perl APIs
-
Ideas and Success Stories
-
-
Chapter 2 A First Module
-
Preliminaries
-
Directory Layout Structure
-
Installing mod_perl
-
"Hello World" with the Perl API
-
"Hello World" with the C API
-
Instant Modules with Apache::Registry
-
Troubleshooting Modules
-
-
Chapter 3 The Apache Module Architecture and API
-
How Apache Works
-
The Apache Life Cycle
-
The Handler API
-
Perl API Classes and Data Structures
-
-
Chapter 4 Content Handlers
-
Content Handlers as File Processors
-
Virtual Documents
-
Redirection
-
Processing Input
-
Apache::Registry
-
Handling Errors
-
Chaining Content Handlers
-
Method Handlers
-
-
Chapter 5 Maintaining State
-
Choosing the Right Technique
-
Maintaining State in Hidden Fields
-
Maintaining State with Cookies
-
Protecting Client-Side Information
-
Storing State at the Server Side
-
Storing State Information in SQL Databases
-
Other Server-Side Techniques
-
-
Chapter 6 Authentication and Authorization
-
Access Control, Authentication, and Authorization
-
Access Control with mod_perl
-
Authentication Handlers
-
Authorization Handlers
-
Cookie-Based Access Control
-
Authentication with the Secure Sockets Layer
-
-
Chapter 7 Other Request Phases
-
The Child Initialization and Exit Phases
-
The Post Read Request Phase
-
The URI Translation Phase
-
The Header Parser Phase
-
Customizing the Type Checking Phase
-
Customizing the Fixup Phase
-
The Logging Phase
-
Registered Cleanups
-
Handling Proxy Requests
-
Perl Server-Side Includes
-
Subclassing the Apache Class
-
-
Chapter 8 Customizing the Apache Configuration Process
-
Simple Configuration with the PerlSetVar Directive
-
The Apache Configuration Directive API
-
Configuring Apache with Perl
-
Documenting Configuration Files
-
-
Chapter 9 Perl API Reference Guide
-
The Apache Request Object
-
Other Core Perl API Classes
-
Configuration Classes
-
The Apache::File Class
-
Special Global Variables, Subroutines, and Literals
-
-
Chapter 10 C API Reference Guide, Part I
-
Which Header Files to Use?
-
Major Data Structures
-
Memory Management and Resource Pools
-
The Array API
-
The Table API
-
Processing Requests
-
Server Core Routines
-
-
Chapter 11 C API Reference Guide, Part II
-
Implementing Configuration Directives in C
-
Customizing the Configuration Process
-
String and URI Manipulation
-
File and Directory Management
-
Time and Date Functions
-
Message Digest Algorithm Functions
-
User and Group ID Information Routines
-
Data Mutex Locking
-
Launching Subprocesses
-
-
Appendix A Standard Noncore Modules
-
The Apache::Registry Class
-
The Apache::PerlRun Class
-
The Apache::RegistryLoader Class
-
The Apache::Resource Class
-
The Apache::PerlSections Class
-
The Apache::ReadConfig Class
-
The Apache::StatINC Class
-
The Apache::Include Class
-
The Apache::Status Class
-
-
Appendix B Building and Installing mod_perl
-
Standard Installation
-
Other Configuration Methods
-
-
Appendix C Building Multifule C API Modules
-
Statistically Linked Modules That Need External Libraries
-
Dynamically Linked Modules That Need External Libraries
-
Building Modules from Several Source Files
-
-
Appendix D Apache:: Modules Available on CPAN
-
Content Handling
-
URI Translation
-
Perl and HTML Mixing
-
Authentication and Authorization
-
Fixup
-
Logging
-
Profiling
-
Persistent Database Connections
-
Miscellaneous
-
-
Appendix E Third-Party C Modules
-
Content Handling
-
International Language
-
Security
-
Access Control
-
Authentication and Authorization
-
Logging
-
Distributed Authoring
-
Miscellaneous
-
-
Appendix F HTML::Embperl—Embedding Perl Code in HTML
-
Dynamic Tables
-
Handling Forms
-
Storing Persistent Data
-
Modularization of Embperl Pages
-
Debugging
-
Querying a Database
-
Security
-
An Extended Example
-
-
Colophon
- Title:
- Writing Apache Modules with Perl and C
- By:
- Doug MacEachern, Lincoln Stein
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- April 1999
- Pages:
- 752
- Print ISBN:
- 978-1-56592-567-0
- | ISBN 10:
- 1-56592-567-X
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal featured on the cover of Writing Apache Modules with Perl and C is a white-tailed eagle. These large sea eagles have a very large range and are therefore highly adaptable. They are mostly found in coastal areas, but can also be found in the tundra and steppes, forests, and mountains. They build huge nests in trees, bushes, cliffs, or on the ground, depending on what their environment offers. Eagles fall into the category of bird known as "raptors," a category that also includes falcons and hawks. Like other sea eagles, white-tailed eagles have toes adapted to grasping smooth prey such as fish. Their excellent vision enables all eagles to spot prey from the air or a high perch. They frequently hunt in pairs for their favorite meal of diving birds. Keeping a sharp eye on the bird as it dives, the white-tailed eagle grabs it as soon as it resurfaces. Fish is another staple of the white-tailed eagle's diet. In fact, their diet is as adaptable as everything else about these birds. They will frequently eat fish in summer and waterfowl and carrion in winter, when fish are less plentiful. Eagles often eat their victims while still flying, breaking them apart and discarding the nonedible parts to lighten their load. Eagles, like most raptors, often dine on sick or wounded animals. There are more than 50 species of eagle spread throughout the world, with the exception of New Zealand and Antarctica. A pair of eagles will use the same nest year after year, lining it with green leaves and grass, fur, turf, or other soft materials and adding to it each year. The largest eagle nest ever found was 20 feet deep and 10 feet across. White-tailed eagles are highly regarded, even revered, by many native populations of Siberia and Scandinavian fishermen. However, in other areas overhunting has almost led to their extinction. Increased awareness and limits on hunting have helped this majestic bird rebuild its population, and it is now considered to be safe. Melanie Wang was the production editor and copy editor for this book, and Sheryl Avruch was the production manager. Sarah Jane Shangraw, Nicole Arigo, and Mary Anne Weeks Mayo provided quality control reviews. Betty Hugh and Sebastian Banker provided production support. Robert Romano created the illustrations using Adobe Photoshop 4 and Macromedia FreeHand 7. Mike Sierra provided FrameMaker technical support. Seth Maislin wrote the index. Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced by Kathleen Wilson with QuarXPress 3.32 using the ITC Garamond font. The quick reference card was designed and produced by Kathleen Wilson. The inside layout was designed by Alicia Cech and implemented in FrameMaker 5.5 by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book. This colophon was written by Clairemarie Fisher O'Leary.
