Cute Tricks With Perl and Apache
Lincoln Stein
Perl Conference, 2d Edition
San Jose, CA 17 August 1998
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: MY FAVORITE CGI TRICKS
Cool Things to do with CGI.pm
Make HTML Beautiful
Make HTML Concise
Make Tables Bearable
Make Interactive Pages
Make Multi-Page Forms
Making Cookies
Making GIF Images
Making Animaged GIFs
Filtering Existing Files
Filtering
HTML
files
Smart Redirection
File Uploads
Part III: MOD_PERL -- FASTER THAN A SPEEDING BULLET
Mod_Perl Introduction
Dynamic Pages with Mod_Perl
Adding a Constant Footer to Each Page
Roll Your Own Server-Side Includes
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
Lincoln D. Stein, lstein@cshl.org
Cold Spring Harbor Laboratory
Last modified: Mon Aug 17 10:25:07 PDT 1998