for nginx there's a very nice module available to filter a response and search/replace content in it: http://wiki.nginx.org/HttpSubModule
i wonder, if there's a similar possibility for lighttpd available?
thanks in advance,
for nginx there's a very nice module available to filter a response and search/replace content in it: http://wiki.nginx.org/HttpSubModule
i wonder, if there's a similar possibility for lighttpd available?
thanks in advance,
Current 1.4.x release default modules seem to miss that functionality but as far as this page goes it could be supported in some future 1.5.x release i na module named mod_layout
.
Take a look at AbsoLUAtion examples. lighttpd with mod_magnet and Lua scripting can do all kind of complex content modifications.
magnet.attract-response-start-to
where you can rewrite the response IFF lighttpd is configured for response offloading (the default) which collects the response from the backend before sending it to the client (instead of being configured to stream the response to the client as the response is produced from the backend).