Hi,


>In this scenario (Apache::SSI comes before Apache::EmbperlFilter)
>Apache::SSI does SSIing,
>but Apache::EmbperlFilter won't execute any lines (of embperl code)
inserted
>via Apache::SSI.

This should work. The only exception may be an #include virtual to
postprocess the output of an CGI script. This generaly doesn't work with
Apache 1.3, because the output of the CGI Script is directly send to the
browser.

Now, after rereading your original mail, I see that you exactly trying to do
this. To verify that your general Filter setup works, you can insert some
text in another way (e.g. via echo), this should normaly postprocessed by
Embperl.

The only way of postprocessing CGI output I know, is to make a real http
request and take the result as input. See EMBPERL_INPUT_FUNC for an example

Gerald




-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


S. Roediger

> -----Urspr�ngliche Nachricht-----
> Von: Gerald Richter [SMTP:[EMAIL PROTECTED]]
> Gesendet am: Freitag, 27. April 2001 19:54
> An: Roediger Stephan; [EMAIL PROTECTED]
> Betreff: Re: Chaining Handlers
>
> Hi,
>
> I am not quite sure what's the correct configuration for EmbperlChain (at
> the first look yours seems to be ok), but here is one that should achieve
> the desired result, but works with Apache::Filter:
>
> http://perl.apache.org/guide/snippets.html#SSI_and_Embperl_Doing_Both
>
> Gerald
>
>
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
>
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
>
> ----- Original Message -----
> From: "Roediger Stephan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 26, 2001 4:37 PM
> Subject: Chaining Handlers
>
>
> > Hi,
> >
> > I've tried to get Apache::OutputChain working - no success.
> > My intention was to do sth. like <!--#include
> > virtual="/global/include/structure.inc" -->.
> > In the mentioned file are Embperl statements included.
> > After doing Apache::SSIChain, Embperl statements should be executed.
> > But the Embperl handler does only recognize Embperl statements in
> > structure.inc.
> > Embperl statements added through Apache::SSIChain doesn't get executed.
> > Further more all includes are displayed (via browser->source) before the
> > main html output.
> >
> > My httpd.conf looks like this:
> >
> > PerlSetEnv EMBPERL_LOG /export/home1/httpd/logs/embperl.log
> > PerlSetEnv EMBPERL_DEBUG 0
> > PerlFreshRestart On
> > PerlRequire /export/home1/httpd/conf/startup.pl
> >
> > AddType text/html .thtml
> >
> > PerlModule Apache::PassFile;
> > PerlModule Apache::SSIChain;
> > PerlModule Apache::EmbperlChain;
> > PerlModule Apache::OutputChain;
> >
> > <FilesMatch ".*\.thtml$">
> >     SetHandler     perl-script
> >     PerlHandler    Apache::OutputChain Apache::EmbperlChain
> Apache::SSIChain
> > Apache::PassFile
> >     Options        +ExecCGI
> > </FilesMatch>
> >
> > Does anyone out there know what I'm doing wrong?
> >
> > S. Roediger
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to