Cool Tricks With Perl and Apache
Lincoln Stein
Perl Conference, 3d Edition
http://www.modperl.com/
Contents
Part I: WEB SITE CARE AND FEEDING
Basic Log File Rotation
Log File Rotation and Archiving
Log File Rotation and Encryption
Logfile Anatomy
Basic Log Parsing
Scanning for Status Codes
Offline Reverse DNS Resolution
Custom Log File Formats
Catching Rude Robots
Robots Caught in the Act
Logging to Syslog
Logging to a Relational Database
Monitoring a Local Web Server
Monitoring a Remote Web Server
Resurrecting a Dead Server
Mirroring Single Pages
Mirroring a Tree of Documents
Finding Bad Links
Load Balancing
Torture-Testing a Web Server
Part II: MOD_PERL -- FASTER THAN A SPEEDING BULLET
Mod_Perl Introduction
Dynamic Pages with Mod_Perl
Adding a Constant Footer to Each Page
A Dynamic Navigation Bar
On-the-Fly Compression
Automagic On-the-Fly Compression
Blocking Bad Robots
Custom Authentication
Anonymous Authentication
Gender-Based Authentication
Smart Proxies
Customized Logging
Logging to a DBI Database
Part III: My MP3 Library
Apache::MP3 Library Intro
Apache::MP3 File Types
Apache::MP3 URLs
Apache::MP3 handler()
Apache::MP3 send_playlist()
Apache::MP3 list_directory()
Apache::MP3 read_directory()
Apache::MP3 fetch_info()
Apache::MP3 send_stream()
Lincoln D. Stein, lstein@cshl.org
Cold Spring Harbor Laboratory
Last modified: Sun Jun 4 13:17:16 PDT 2000