Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 28516 invoked from network); 24 Feb 2006 14:39:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Feb 2006 14:39:30 -0000 Received: (qmail 39910 invoked by uid 500); 24 Feb 2006 14:39:18 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 39894 invoked by uid 500); 24 Feb 2006 14:39:17 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 39882 invoked by uid 99); 24 Feb 2006 14:39:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 06:39:17 -0800 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=IP_LINK_PLUS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of alvaro.listas@gmail.com designates 64.233.182.205 as permitted sender) Received: from [64.233.182.205] (HELO nproxy.gmail.com) (64.233.182.205) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 06:39:16 -0800 Received: by nproxy.gmail.com with SMTP id l24so216244nfc for ; Fri, 24 Feb 2006 06:38:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tQlBZZH+AAgGdJRVweTgwYg3UkaCv2hi+yfSy5wpVZHBo2eWMCHyilpbK6cop5GEyYoCqTyFgaWlFqvSGjuTpVGU1e92xaDmuxDzpskGC2PnCl7WsaVzJUGQMkcwi8AUepeggvJnz03FnVdFKToEGfETHfFlEqlZscSbrp9yuC8= Received: by 10.48.127.15 with SMTP id z15mr2784570nfc; Fri, 24 Feb 2006 06:38:55 -0800 (PST) Received: by 10.49.6.7 with HTTP; Fri, 24 Feb 2006 06:38:55 -0800 (PST) Message-ID: Date: Fri, 24 Feb 2006 11:38:55 -0300 From: "Alvaro Listas" To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Cannot browse an image file under a cgi directory. X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello folks, I am trying to monitor a squid box, but I am having problems with Apache's configuration. Environment Fedora 4 Kernel 2.6.15 Perl v5.8.6 rrdtool-1.0.49-5 Apache: httpd-2.0.54-10.3 Problem: Cannot browse an image file under a cgi directory. Reference: http://www.squid-cache.org/~wessels/squid-rrd. Almost everything is working as expected, except for the fact that when I hit http://10.4.10.201/squidstats/1day.cgi, the browser shows empty boxes with a red cross at the upper right corner. It does get executed, and the images are generated; just cannot browse them. The apache error log says: ... [Fri Feb 24 09:20:05 2006] [error] [client 10.4.51.202] (8)Exec format error: exec of /var/www/html/squid/select.day.png' failed, referer: http://10.4.10.201/squidstats/1day.cgi [Fri Feb 24 09:20:05 2006] [error] [client 10.4.51.202] Premature end of script headers: select.day.png, referer: http://10.4.10.201/squidstats/1day.cgi ... I get the same message for all the PNGs files. My guess: Apache is trying to execute the PNGs files as if they were script= s. I searched the net trying to find a solution, but got no success at all. Unless I have overlooked something ... A few pieces of my httpd.conf file: DocumentRoot "/var/www/html" AddHandler cgi-script .cgi ScriptAlias /squidstats/ "/var/www/html/squid/" AllowOverride All Options ExecCGI Order allow,deny Allow from all I must be missing something. Must need to set/adjust some parameter(s), just don't know which one(s). I tried chmod 755 *.png, and as a last resource, even 777. No success. Apache user owns the PNGs files. As stated before, this is the only problem I am having, since all the image files are getting updated when the script is executed through the browser. If I copy the generated png files to DocumentRoot, I can browse the generated image. I would adjust the scripts to generate the images somewhere else if I knew how to do that. Maybe this is the only solution, who knows? Any help will be greatly appreciated. Best regards, AL --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org