ProxyPass and ExtFilter do not work together for me..

relevant pieces of config:

ExtFilterDefine inject-into-google mode=output cmd="/bin/sed s/head/tail/g"
 LogLevel debug

  <Location /proxy/google>
        allow from all
        SetOutputFilter inject-into-google
        ProxyPass http://www.google.com
        ExtFilterOptions DebugLevel=9 LogStderr
  </Location>

s/head/tail/ is not performed. however, if i change it to s/o/e/g,
*something* happens -- browser says it's not able to display
page, i guess because substitution is performed in headers.

so, substitution works only for single letter combination,
but doesn't work for four-letter combinations. i've also tried
two letter combinations -- it seems it works randomly.

error.log looks like this:

[Tue Jul 01 06:45:13 2008] [debug] mod_proxy_http.c(1448): proxy: start body send [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(618): [client 192.168.92.1] filtering `/proxy/google/search' of type `text/html; charset=UTF-8' through `/bin/sed', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype (unchanged) [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] apr_file_read(child output), len 4096 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] apr_file_read(child output), len 2082 [Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client 192.168.92.1] (70014)End of file found: apr_file_read(child output), len -1 [Tue Jul 01 06:45:13 2008] [debug] mod_proxy_http.c(1537): proxy: end body send [Tue Jul 01 06:45:13 2008] [debug] proxy_util.c(1780): proxy: HTTP: has released connection for (www.google.com)

i'm using Debian GNU/Linux 4, x86, apache2 version 2.2.3-4+etch4

--
with best regards, Alex 'killer_storm' Mizrahi.

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to