httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Koebrick" <andrew.koebr...@mnplan.state.mn.us>
Subject [users@httpd] ExtFilter issues
Date Fri, 07 Feb 2003 19:29:07 GMT
Howdy,

I am getting some odd behaviour from the external filter modulte in
Apache 2.0 and would appreciate any input.  I have sed filters which
insert a virtual directive at the opening and close of the body:

ExtFilterDefine header mode=output intype=text/html cmd="/bin/sed
s/<\/head>/<\/head><!--#include\ virtual=\"\/inc\/headerder\"-->/gi"
ExtFilterDefine footer mode=output intype=text/html cmd="/bin/sed
s/<\/head>/<\/head><!--#include\ virtual=\"\/inc\/headerder\"-->/gi"

I then enable the filters thusly:

<Directory /home/httpd/html>
ExtFilterOptions LogStderr DebugLevel=0
SetOutputFilter header;footer;INCLUDES
</Directory>


This causes the pages to load _very_ slowly.  When I check the running
proccesses, as the page loads, I get three instances of:

[sed <defunct>]

A few questions: 
1) Why is sed hanging like this?  Should it not just shut down once
run?  Is it tie somehow to the httpd deamon?
2) It appears that sed is acting not only on the page being loaded, but
a daemon is being launced for each included page as well.  I tested this
by putting an extra "</head> in the include file and sure enough sed
acted on it- inserting a virtual include- but the text insertion
requested by the virtual include failed.  

This is counter to what I am expecting with the ordering defined by the
SetOutputFilter.   Is there any way to ensure that the filters run only
on the actual page and not the includes?  I have tried upping and
downing the ftype value for the ExtFilterDefines to no avail.

Can anyone please give me insight on better to control the filters and
speed up the pages?

Cheers,

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message