Writing Apache Modules with Perl and C: The Apache API and Mod_perl

Front Cover
"O'Reilly Media, Inc.", 1999 - Computers - 724 pages
Apache is the most popular web server on the Internet because it is free, reliable, and extensible. The availability of the source code and the modular design of Apache makes it possible to extend web server functionality through the Apache API. For the most part, however, the Apache API has only been available to C programmers, and requires rebuilding the Apache server from source. mod_perl, the popular Apache module used primarily for enhanced CGI performance, changed all that by making the Apache API available to Perl programmers. With mod_perl, it becomes simple to develop Apache modules with Perl and install them without having to rebuild the web server. Writing Apache Modules with Perl and C shows how to extend web server capabilities regardless of whether the programming language is Perl or C. The book explains the design of Apache, mod_perl, and the Apache API. It then demonstrates how to use them to perform for tasks like the following:
  • Rewriting CGI scripts as Apache modules to vastly improve performance
  • Server-side filtering of HTML documents, to embed special markup or code (much like SSI)
  • Enhancing server log functionality
  • Converting file formats on the fly
  • Implementing dynamic navigation bars
  • Incorporating database access into CGI scripts
  • Customizing access control and authorization to block robots or to use an external database for passwords
The authors are Lincoln Stein and Doug MacEachern. Lincoln is the successful author of How to Set Up and Maintain a World Wide web Site and the developer of the widely used Perl CGI.pm module. Doug is a consultant and the creator of the innovative mod_perl Apache module.

Contents

II
1
III
2
IV
9
V
12
VI
14
VII
17
IX
19
X
22
XLVIII
343
XLIX
353
L
358
LI
360
LII
367
LIII
368
LIV
384
LV
386

XI
28
XII
32
XIII
41
XIV
45
XV
51
XVI
56
XVII
64
XVIII
80
XIX
85
XXI
122
XXII
123
XXIII
130
XXIV
143
XXV
164
XXVI
175
XXVII
189
XXVIII
196
XXXI
198
XXXII
208
XXXIII
213
XXXIV
221
XXXV
230
XXXVI
258
XXXVII
261
XXXIX
268
XL
282
XLI
293
XLII
304
XLIII
322
XLIV
330
XLVI
332
XLVII
333
LVII
387
LVIII
415
LIX
427
LX
429
LXIII
467
LXIV
486
LXV
489
LXVI
497
LXVII
505
LXVIII
506
LXX
527
LXXI
530
LXXII
533
LXXIII
538
LXXIV
554
LXXV
570
LXXVI
592
LXXVII
598
LXXVIII
612
LXXIX
617
LXXX
619
LXXXI
621
LXXXIII
622
LXXXIV
633
LXXXV
644
LXXXVI
652
LXXXVII
660
LXXXVIII
674
LXXXIX
687
XC
703
Copyright

Common terms and phrases

Bibliographic information