www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank M. Ramaekers Jr." <fra...@ibm.net>
Subject RE: mod_cgi/2901: CGI created HTMLs are trying to be executed
Date Tue, 25 Aug 1998 22:10:01 GMT
The following reply was made to PR mod_cgi/2901; it has been noted by GNATS.

From: "Frank M. Ramaekers Jr." <frankr@ibm.net>
To: <marc@apache.org>
Cc: <apbugs@apache.org>
Subject: RE: mod_cgi/2901: CGI created HTMLs are trying to be executed
Date: Tue, 25 Aug 1998 16:12:06 -0600

 Yes I understand this.
 I have the following setup:
 d:\Apache			executables
 d:\Apache\cgi-bin		CGI directory
 d:\Apache\root		Server root directory
 When a CGI is executed out of d:\Apache\cgi-bin directory and creates files
 (HTML to be used in <FRAMESET>), the refrenced URL is referenced from the
 CGI directory:
 <FRAME SRC="tmp/a.HTML">	becomes d:\Apache\cgi-bin\tmp\a.HTML
 [Mon Aug 24 21:06:21 1998] [error] d:/apache/cgi-bin/tmp/1270011096t.html is
 not executable; ensure interpreted scripts have "#!" first line
 [Mon Aug 24 21:06:21 1998] [error] (2)No such file or directory: couldn't
 spawn child process: d:/apache/cgi-bin/tmp/1270011096t.html
 <FRAME SRC="/tmp/a.HTML">	becomes d:\Apache\cgi-bin\\tmp\a.HTML.EXE
 [Mon Aug 24 21:01:05 1998] [error] (2)No such file or directory: script not
 found or unable to stat: d:/apache/cgi-bin/tmp/1270011093P.HTML.EXE
 How do I dynamically create an HTML from a CGI that won't be intrepreted as
 being a CGI (executable)?
 > -----Original Message-----
 > From: marc@apache.org [mailto:marc@apache.org]
 > Sent: Tuesday, August 25, 1998 10:20 AM
 > To: apache-bugdb@apache.org; frankr@ibm.net; marc@apache.org
 > Subject: Re: mod_cgi/2901: CGI created HTMLs are trying to be executed
 > [In order for any reply to be added to the PR database, ]
 > [you need to include <apbugs@Apache.Org> in the Cc line ]
 > [and leave the subject line UNCHANGED.  This is not done]
 > [automatically because of the potential for mail loops. ]
 > [If you do not include this Cc, your reply may be ig-   ]
 > [nored unless you are responding to an explicit request ]
 > [from a developer.                                      ]
 > [Reply only with text; DO NOT SEND ATTACHMENTS!         ]
 > Synopsis: CGI created HTMLs are trying to be executed
 > State-Changed-From-To: open-closed
 > State-Changed-By: marc
 > State-Changed-When: Tue Aug 25 09:19:45 PDT 1998
 > State-Changed-Why:
 > Erm... please read the docs on the ScriptAlias directive.
 > It tells Apache that all files in a directory are CGI
 > scripts, period.
 > If you want to configure Apache to only treat files with
 > certain names as CGI scripts, then fine you can do that
 > easily, but not with the ScriptAlias directive.
 > It would be quite broken if Apache tried to magically guess
 > that you are saying "oh, all files should be executable
 > except those that I guess this author doesn't want to be
 > even though he hasn't told me."

View raw message