Proxy + Output Filter and Error Pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I'm using an output filter with mod_proxy to apply content
transformation to a proxied application. It's all working fine so far,
except for the fact that mod_proxy does not call the output filter for
error pages.

The code in question is in mod_proxy_http.c, around line 1455 (httpd-2.2.4):

            /*
             * if we are overriding the errors, we can't put the content
             * of the page into the brigade
             */
            if (!conf->error_override || ap_is_HTTP_SUCCESS(r->status)) {


Setting ProxyErrorOverride overrides the error response completely,
which is not what I want.

I don't see any obvious reason for not passing the error page body
through to the output filters, other than no-one needed it so far.

I'm willing to submit a patch to add a configuration setting that can
be enabled to pass the error page body through the output filters.
Does that sound like it might be accepted? Anyone has a better
suggestion?

-- 
Sidnei da Silva
Enfold Systems                http://enfoldsystems.com
Fax +1 832 201 8856     Office +1 713 942 2377 Ext 214

---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux