Hello, After upgrading from Apache 1.3 to 2.0, some scripts do not work anymore. rrdcgi-based scripts now give a 500 error and "ERROR: expected a filename" in the error log.
Debbuging showed this with Apache 2.0: [Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] Premature end of script headers: host2.cgi [Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] ARGV[0]='/opt/rrdtool/bin/rrdcgi2' [Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] ARGV[1]='host2.cgi' [Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] ARGV[2]='host=asap14\&start=1d' [Fri Jul 12 14:49:14 2002] [error] [client 10.10.24.195] ERROR: expected a filename, optind=1, argc=3 While with Apache 1.3 I got: ARGV[0]='/opt/rrdtool/bin/rrdcgi2' ARGV[1]='/opt/apache/lib/htdocs/rrd/host2.cgi' OK: got a file, optind=1, argc=2 file=/opt/apache/lib/htdocs/rrd/host2.cgi So it seems that Apache 2.0 is passing the QUERY_STRING as argument to the script, while Apache 1.3 did not, and this breaks rrdcgi. Is that an Apache issue, something that needs to be fixed with rrdcgi, or something I am missing ? Thanks, -- Marc Roger -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
