Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

APache 2.0 output of CGI scripts to be parsed for Server Side Include

The feature exists but how do I use it?



8:57 pm on Dec 27, 2001 (gmt 0)

Inactive Member
Account Expired


Listed under Apache 2.0 features is this nice tidbit:
"Apache modules may now be written as filters which act on the stream of content as it is delivered to or from the server. This allows, for example, the output of CGI scripts to be parsed for Server Side Include directive by mod_include."

What I would like to know is if anyone knows how to do that.. "Output of CGI scripts to be parsed for Server Side Include directive?"?

Before you ask why I would want to do such a thing, this is why:

I am using a 3rd party program that provides great functionality for me. I have the source to this program but do not want to modify it so that I can keep updating it as new versions come out. So, the best solution for me is to have SSI in the templates that this CGI reads.

So, any ideas? I know it can be done, it says so in the features of 2.0, now I just need to know HOW.

Thanks for your time,

Nick Powers
<no sigs please -rcj>

(edited by: rcjordan at 9:03 pm (gmt) on Dec. 27, 2001)


4:14 am on Dec 28, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
votes: 0

Well FWIW, I think what they are saying is that you could write such a module if you wanted to, but I don't see native support for it. I see the Apache group providing the ability to filter inbound and outbound (previously only inbound could be acted on), so that you get one more chance to act on the data before it gets to the browser. I'm sure it won't be long though until someone builds a module to act on SSI within CGI's given this new feature.