*) mod_headers: Enable multi-match-and-replace edit option
PR 47066 [Nick Kew]
+ *) mod_filter: enable it to act on non-200 responses.
+ PR 48377 [Nick Kew]
+
Changes with Apache 2.3.4
*) Replace AcceptMutex, LockFile, RewriteLock, SSLMutex, SSLStaplingMutex,
filters declared, offering the flexibility to insert filters at the
beginning or end of the chain, remove a filter, or clear the chain.</dd>
</dl>
+<section id="errordocs"><title>Filtering and Response Status</title>
+ <p>mod_filter normally only runs filters on responses with
+ HTTP status 200 (OK). If you want to filter documents with
+ other response statuses, you can set the <var>filter-errordocs</var>
+ environment variable, and it will work on all responses
+ regardless of status. To refine this further, you can use
+ expression conditions with <directive>FilterProvider</directive>.</p>
</section>
<section id="upgrade"><title>Upgrading from HTTPD 2.2 Configuration</title>
<p>The <directive module="mod_filter">FilterProvider</directive>
harness_ctx *ctx = f->ctx;
ap_filter_rec_t *filter = f->frec;
- if (f->r->status != 200) {
+ if (f->r->status != 200
+ && !apr_table_get(f->r->subprocess_env, "filter-errordocs")) {
ap_remove_output_filter(f);
return ap_pass_brigade(f->next, bb);
}