mod_perl2 filters and reverse proxies

[prev] [thread] [next] [Date index for 2004/11/11]

From: allan juul
Subject: mod_perl2 filters and reverse proxies
Date: 07:09 on 11 Nov 2004
hi

i have tried the filter example on 
http://www.perl.com/pub/a/2003/04/17/filters.html which worked like a charm. 
(this filter will "clean" the html in the requested file if the location begins 
with /clean)

i wish to use a filter/handler to massage the content coming from a reverse 
proxied server.

[i have tried the execellent 3rd party C-module from 
http://apache.webthing.com/mod_proxy_html/ but that module does actually too 
much with the response content]


setup
-----

apache2/mod_perl2 webserver on port 80
apache1 webserver on port 8080


apache2/mod_perl2 httpd.conf
----------------------------
RewriteRule ^/(.*) http://localhost:8080/$1 [P,L]


this rule will proxy all requests to the apache1 server.
on the apache1 server i have a file i can browse to via:

  http://localhost:8080/clean/test.html [this is bypassing any filter, thus 
looking exactly as if i opened it manually from disk]

now i want to filter the contents so i would try this url:

  http://localhost/clean/test.html [this should envoke the clean filter (i 
think)]


i'm currently sitting on a win2003 box where non-reverse-proxied requests 
indeed would be filtered but when i do try to reverse-proxy i get an ugly 
message box:
The instruction at "0x280836de" referenced memory at "0x00000c10". The memory 
could not be "read".


is it a misunderstanding that the above scenario could work at all?

have anyone tried this succesfully on windows

thanks
./allan











1) is this possible at all ?





        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

mod_perl2 filters and reverse proxies
allan juul 07:09 on 11 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52