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
IV
2
V
9
VI
12
VII
14
VIII
17
X
19
XI
22
XLIX
343
L
353
LI
358
LII
360
LIII
367
LIV
368
LV
384
LVI
386

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

Other editions - View all

Common terms and phrases

Bibliographic information