Re: Apache 2.2.20 and mod_proxy_balancer with ajp

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

 




----- Original Message -----
> On 22.11.2011 12:19, Aleksandar Lazic wrote:
> > Dear List members,
> >
> > Setup:
> >
> > Apache 2.2.20

First off, 2.2.21 fixes CVE-2011-3192 - might want to check that.

> > Tomcat 6.0.32
> >
> > global config
> >
> > ###
> > ...
> > ProxyErrorOverride On
> > ErrorDocument 500 /500.html
> > ErrorDocument 404 /404.html
> > ...
> > ###
> 
> [snipp]
> 
> > Question:
> > When the tomcat returns a 404 or 500 the httpd shows the tomcat
> > default
> > error page and not the httpd ErrorDocument.
> 
> after a quick look up in the src
> 
> http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy_ajp.c
> http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy_http.c
> 
> I have not seen a similar line in the mod_proxy_ajp.c

I'm not entirely sure, but I believe to have seen this fixed
in 2.4/trunk.

> ###
> ... in function
> static
> apr_status_t ap_proxy_http_process_response(apr_pool_t * p,
> request_rec
> *r,
>                                              proxy_conn_rec *backend,
>                                              conn_rec *origin,
>                                              proxy_server_conf *conf,
>                                              char *server_portstr) {
> ...
> /* The status out of the front is the same as the status coming in
>               * from the back, until further notice.
>               */
>              r->status = proxy_status;
>              r->status_line = proxy_status_line;
> ...
> ###
> 
> Could this be the reason why the ErrorDocument & ProxyErrorOverride
> does not work with ajp?
> 
> When we switch to http connector & balancer http we get the httpd
> ErrorDocument.
> 
> Cheers Aleks

i


-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@xxxxxxxxxxxxxx
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

---------------------------------------------------------------------
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