Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 40737 invoked from network); 30 Mar 2004 13:47:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Mar 2004 13:47:47 -0000 Received: (qmail 40094 invoked by uid 500); 30 Mar 2004 13:47:44 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 39912 invoked by uid 500); 30 Mar 2004 13:47:43 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 39860 invoked from network); 30 Mar 2004 13:47:43 -0000 Received: from unknown (HELO fep02-mail.bloor.is.net.cable.rogers.com) (66.185.86.72) by daedalus.apache.org with SMTP; 30 Mar 2004 13:47:43 -0000 Received: from fleet ([24.42.0.34]) by fep02-mail.bloor.is.net.cable.rogers.com (InterMail vM.5.01.05.12 201-253-122-126-112-20020820) with ESMTP id <20040330134623.GFAN39251.fep02-mail.bloor.is.net.cable.rogers.com@fleet>; Tue, 30 Mar 2004 08:46:23 -0500 Subject: Re: cgi app under embperl::object From: Brian Schoenhofer Reply-To: brian@schoenhofer.ca To: Gerald Richter Cc: embperl@perl.apache.org In-Reply-To: <051201c4162a$4320b130$f80c0b0a@wingr2> References: <1080616458.20072.180.camel@fleet> <051201c4162a$4320b130$f80c0b0a@wingr2> Content-Type: text/plain Message-Id: <1080654336.20115.191.camel@fleet> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4-8mdk Date: Tue, 30 Mar 2004 08:45:36 -0500 Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH PLAIN at fep02-mail.bloor.is.net.cable.rogers.com from [24.42.0.34] using ID at Tue, 30 Mar 2004 08:46:22 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, 2004-03-30 at 02:40, Gerald Richter wrote: > Brian Schoenhofer wrote: > > I have Embperl::Object setup for a directory on my Mandrake 9.2 > > system. I have base.epl defining a page layout and would like to get > > a cgi app to run as if it were in a subdir of this Embperl directory. > > I want the cgi app to be included in my template. > > > > I have the standard Apache setup (with small Mandrake modifications) > > so the cgi dir is not below the dir that Embperl::Object is handling. > > I am thinking that if it were then it would show up in my template. > > This, however, would not be very secure (I don't know why but I have > > seen enough to know that cgi-bin is not under .../apache/htdocs due to > > security). > > > > What should I do? > > > > If you want to include the output of your cgi script, you need to issue a > subrequest > > Execute({subreq => '/cgi-bin/script.cgi'}) ; > I was aware of the subrequest function and it works for a single request. For example, the cgi app I would like to get working is a web calendar. The first request to it shows it's login page nicely in my template. When I login the calendar then shows up on it's own page without my template. The login request goes to the cgi-bin which is outside of my Embperl::Object handler. > This will include the output of the cgi script under this URI > > Gerald > --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org