ASF Bugzilla – Attachment 22842 Details for
Bug 46169
mod_jk extension use_server_errors not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch making use_server_errors work with httpd 1.3
mod_jk_httpd13_server_errors.patch (text/plain), 1.45 KB, created by
Rainer Jung
on 2008-11-07 09:40:18 UTC
(
hide
)
Description:
Patch making use_server_errors work with httpd 1.3
Filename:
MIME Type:
Creator:
Rainer Jung
Created:
2008-11-07 09:40:18 UTC
Size:
1.45 KB
patch
obsolete
>Index: apache-1.3/mod_jk.c >=================================================================== >--- apache-1.3/mod_jk.c (revision 712202) >+++ apache-1.3/mod_jk.c (working copy) >@@ -646,6 +646,7 @@ > e = (rule_extension_t *)ap_get_module_config(r->request_config, &jk_module); > if (e) { > s->extension.reply_timeout = e->reply_timeout; >+ s->extension.use_server_error_pages = e->use_server_error_pages; > if (e->activation) { > s->extension.activation = ap_palloc(r->pool, e->activation_size * sizeof(int)); > memcpy(s->extension.activation, e->activation, e->activation_size * sizeof(int)); >@@ -2249,6 +2250,15 @@ > jk_close_pool(&private_data.p); > > if (rc > 0) { >+ if (s.extension.use_server_error_pages && >+ s.http_response_status >= s.extension.use_server_error_pages) { >+ if (JK_IS_DEBUG_LEVEL(conf->log)) >+ jk_log(conf->log, JK_LOG_DEBUG, "Forwarding status=%d" >+ " for worker=%s", >+ s.http_response_status, worker_name); >+ JK_TRACE_EXIT(conf->log); >+ return s.http_response_status; >+ } > /* If tomcat returned no body and the status is not OK, > let apache handle the error code */ > if (!r->sent_bodyct && r->status >= HTTP_BAD_REQUEST) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 46169
: 22842