httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] Apache 2.2.20 and mod_proxy_balancer with ajp
Date Tue, 22 Nov 2011 15:27:56 GMT


----- 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@brainsware.org
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message