in reply to Generating more readable errors with mod_perl

Hello nysus,

I'm not the best mod_perl nor Apache expert here around but I suspect this is not a mod_perl issue but an Apache one:

> Starting from 2.0.49, the Apache logging API escapes everything that goes to error_log..

CFLAGS="-DAP_UNSAFE_ERROR_LOG_UNESCAPED" ./configure seems to be the related configuration, but must be enabled at build time.. ;=(

It's supposed to be a security issue: you must investigate it further. See here

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Generating more readable errors with mod_perl
by nysus (Parson) on Nov 26, 2017 at 05:04 UTC

    I was wondering if there was a way to redirect errors to something other than the apache log file. That way I wouldn't be limited to the apache log file constraints.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

      I think there is: see Log4perl faqs

      L*

      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.