You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Andre Rothe <an...@zks.uni-leipzig.de> on 2020/12/01 15:44:12 UTC
Intercept request/response
Hi,
I use mod_ext_filter to intercept requests and responses
to another Apache module, which sends/receives data to/from
a Java service on the same machine.
The mod_ext_filter runs PHP scripts to modify the data
on the way from/to the client's browser.
Every request/response starts its own PHP interpreter, so I cannot
use some cache strategies between the interpreters.
Is it possible to use/write a module (perhaps mod_rewrite?), which
redirects the requests/responses to PHP scripts first, which are
defined on a <directory> within the Apache config to prevent
restarting the interpreter?
I try to find a solution before I completly modify the running system...
The destination/source of the requests/responses are always
the other Apache module, which is connected to the Java service,
so the PHP scripts must redirect again.
Thanks a lot
André