Practical mod_perl / HTML Book /



previous page: B.15.11. Apache::SSI—Implement Server-Side Includes in Perl
  
page up: HTML Version of the book
  
next page: B.16.2. Apache::DBILogConfig—Logs Access Information in a DBI Database

B.16.1. Apache::RedirectLogFix—Correct Status While Logging


Because of the way mod_perl handles redirects, the status code is not properly logged. The Apache::RedirectLogFix module works around this bug until mod_perl can deal with this. All you have to do is to enable it in the httpd.conf file.

PerlLogHandler Apache::RedirectLogFix

For example, you will have to use it when doing:

$r->status(304);

and do some manual header sending, like this:

$r->status(304);
$r->send_http_header( );

Available from the mod_perl distribution. See the module manpage for more information.

 

Continue to:

  • prev: B.15.11. Apache::SSI—Implement Server-Side Includes in Perl
  • Table of Contents
  • next: B.16.2. Apache::DBILogConfig—Logs Access Information in a DBI Database







TOP
previous page: B.15.11. Apache::SSI—Implement Server-Side Includes in Perl
  
page up: HTML Version of the book
  
next page: B.16.2. Apache::DBILogConfig—Logs Access Information in a DBI Database


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com