https://bz.apache.org/bugzilla/show_bug.cgi?id=60692

            Bug ID: 60692
           Summary: ErrorLog directive ignored for CGI scripts running
                    under mod_cgid
           Product: Apache httpd-2
           Version: 2.4.10
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_cgid
          Assignee: bugs@httpd.apache.org
          Reporter: esert...@yahoo.de
  Target Milestone: ---

Even though a per-vhost ErrorLog directive is present, all stderr from cgi
scripts go to the *default* errorlog, not the configured per-vhost errorlog.

This can be demonstrated with a small cgi script like

#!/usr/bin/perl
use CGI ':standard';
print header;
print "Hello, world!\n";
warn "test error";
__END__

The matching vhost configuration file has the following line

ErrorLog /tmp/eserte-apache-error.log


However, if the script is run, the stderr output goes to the central error.log
file:

*** /var/log/apache2/error.log ***
test error at /home/eserte/www/cgi-bin/stderr.cgi line 7.


If I switch from mpm_event+cgid to mpm_worker+cgi, then things work as
expected:

*** /tmp/eserte-apache-error.log ***
[Sun Feb 05 15:53:06.832564 2017] [cgi:error] [pid 12835] [client
192.168.1.3:59542] AH01215: test error at /home/eserte/www/cgi-bin/stderr.cgi
line 7.


(Note also that additionally the ErrorLogFormat directive is ignored in the
mod_cgid setup --- this could be the same issue as described in
https://bz.apache.org/bugzilla/show_bug.cgi?id=54221 )

apache2 is installed by package on a Debian/jessie system (exact version
number: 2.4.10-10+deb8u7).

Regards,
    Slaven

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to