Bug 62682

Summary: mod_cgid ignores virt host ErrorLog directive
Product: Apache httpd-2 Reporter: ccolumbu
Component: mod_cgidAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 2.4.34   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description ccolumbu 2018-09-05 11:17:24 UTC
By default my new Fedora server v 28 (Linux localhost 4.17.19-200.fc28.x86_64 #1 SMP Fri Aug 24 15:47:41 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux) uses mpm_event.
When I call a CGI script with print STDERR "test\n"; the entry appears in /var/log/httpd/error_log (which is the log file specified in the ErrorLog directive of /etc/httpd/conf/httpd.conf), instead of in the ErrorLog file specified in the <VirtualHost>.
When I switch to mpm_prefork it works as expected and writes into the file specified in the <VirtualHost> ErrorLog entry.

I am not sure if this is expected behavior as I have never used mpm_event before, but it was unexpected to me.
Comment 1 Eric Covener 2018-09-05 11:37:20 UTC
change title/component, I assumed you switched mod_cgi/mod_cgid at the same time as switching MPMs.
Comment 2 ccolumbu 2018-09-05 11:52:57 UTC
Yes mpm_event uses mod_cgid and mpm_prefork uses mod_cgi
Comment 3 Joe Orton 2019-07-05 10:26:28 UTC
Track this

*** This bug has been marked as a duplicate of bug 60692 ***