cgi stderr output goes to log, right?

cgi stderr output goes to log, right?

Post by Gary Sh » Wed, 13 Dec 1995 04:00:00



Hi -- I suspect this is a dumb question, but here goes:  Does
NetScape log the stderr output of a cgi script to the 'errors'
file, i.e., the log file?  I know that NCSA does; I presume that
Spinner and Apache do as my code works under them.

Just ported some stuff to the NS Commu. server and whenever I
do any output to stderr from the cgi script, the server seems
to interpret it as html and generates an error.  I think.

Comments?  Please cc me as I don't usually read this list...
thanks!
--

http://www.xmission.com/~shea
Salt Lake City, Utah

 
 
 

1. Apache 2.0.42 doesn't send CGI stderr output to VirtualHost's ErrorLog

Subject says it all really - I just built Apache 2.0.42 on Red Hat Linux 7.2
and had both a global ErrorLog directive and one inside a <VirtualHost>
that pointed to a different error_log file than the global one.

When running a CGI script from the VirtualHost'ed domain, any stderr output
*should* go to the ErrorLog specified inside the <VirtualHost>. It doesn't -
it incorrectly goes to the global ErrorLog directive's error_log file.
Apache 1.3.X behaves correctly and does send its stderr output to the
<VirtualHost>'ed error_log file. This appears to be a 2.0.42 bug, because
the Apache 2.0 docs confirm that it should be the 1.3.X behaviour I should
be seeing.


Connect Internet Solutions,    WWW: http://www.connectinternetsolutions.com/
3, Brownlow Street,
Liverpool,
Merseyside, UK. L69 3GL

2. Unix - Frequently Asked Questions (Contents) [Frequent posting]

3. Logging CGI input/output in Apache

4. Question for the ipchains experts...

5. cgi.log output

6. Screensaver?

7. Perl script log file output has duplicate copies of output lines

8. What device is the mouse on ASUS board?

9. Outputting to a log file and translating output

10. why does tar close stdout and stderr right before exit?

11. /cgi-bin/phf /cgi-bin/test-cgi /cgi-bin/handler

12. Logging stopped on RH 5.2 (no output to "messages" log)

13. System logging going to console not log file