On Mon, 3 Sep 2001, Cliff Woolley wrote:

> > Actually, is anybody on the list (with 2.0 from cvs-HEAD) using
> > cgi/cgid for subrequests, redirects, or error pages?  That would be
> > the area of interest.

Using prefork/mod_cgi/mod_include, the results are definitely interesting:

--------------------------------------------------------------
>From a file in the docroot:
<!--#include virtual="index.html.en"-->          This works
<!--#include virtual="manual/index.html.en"-->   This works
<!--#include virtual="/manual/index.html.en"-->  This works
<!--#include virtual="/cgi-bin/printenv"-->      This works
<!--#include virtual="/cgi-bin/redir.cgi"-->     ASSERT FAILED (see below)

Accessing /cgi-bin/redir.cgi directly            This works

>From a file in /modules/include:
<!--#include file="extra/inc-extra1.shtml"-->    SEGFAULT (see below)
<!--#include virtual="extra/inc-extra1.shtml"--> This works

Accessing /cgi-bin/error403.cgi directly         This works

Trying to access forbidden.html, which is
 forbidden, directly (with a CGI ErrorDocument)  This works (correctly)

>From a file in docroot:
<!--#include virtual="forbidden.html"-->         This works (correctly)

Accessing index.html.en with redir.cgi           This works
Accessing printenv with redir.cgi                This works
--------------------------------------------------------------
In the above tests, redir.cgi is the following:

#!/usr/bin/perl
print("Location: /manual\n\n");

error403.cgi is this, with the appropriate errordocument directive:

#!/usr/bin/perl
print("Content-type: text/html\n\n");
print("<html><body>Forbidden</body></html>\n");
--------------------------------------------------------------

So two of my tests failed.  One is the one we know about, the <!--#include
file ... --> on a file in a different directory, which falls victim to the
INTERNALLY GENERATED thing.

The other is a new one... an assertion failed when I tried to do an
include virtual of redir.cgi:

[Mon Sep 03 22:46:31 2001] file http_protocol.c, line 1171, assertion
"!r->main" failed
[Mon Sep 03 22:46:32 2001] [notice] child pid 7922 exit signal Aborted (6)

All the rest worked!  I guess that's relatively good news.

Anything else you'd like me to test?

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   [EMAIL PROTECTED]
   Charlottesville, VA







Reply via email to