Bug 44738 - mod_jk-1.2.26 does not work in virtualhost
Summary: mod_jk-1.2.26 does not work in virtualhost
Status: RESOLVED FIXED
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: Common (show other bugs)
Version: unspecified
Hardware: Sun Solaris
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-01 18:27 UTC by SASAJIMA,Toshihiro
Modified: 2008-10-05 03:11 UTC (History)
0 users



Attachments
This patch handles JkOptions correctly (706 bytes, patch)
2008-04-01 18:27 UTC, SASAJIMA,Toshihiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SASAJIMA,Toshihiro 2008-04-01 18:27:06 UTC
Created attachment 21760 [details]
This patch handles JkOptions correctly

My site works on Apache 2.0.61 + mod_jk-1.2.23 + Tomcat.
I upgrade my site to Apache 2.0.63 + mod_jk-1.2.26 + Tomcat,
and it does not work.
mod_jk logs following messages:

  [Tue Apr 01 19:21:55.450 2008] [20648:27] [error] jk_handler::mod_jk.c (2223): Could not init service for worker=customer

An abobe trouble causes by a bug of merge_jk_config(). 
My httpd.conf is like a following:

  JkOptions       +ForwardURIProxy
  <Virtualhost *>
    JkOptions       +ForwardURICompat
  </Virtualhost>

In server settings, "options" variable is JK_OPT_FWDURIPROXY (0x0004).
In virtualhost settings, "options" variable is JK_OPT_FWDURICOMPAT (0x0001).
merge_jk_config() merges both variables to 0x0005
and it causes an error of init_ws_service().
Comment 1 Rainer Jung 2008-04-02 11:02:59 UTC
Thanks a lot for analysis and patch.
Patch applied to 1.2.27-dev (for httpd 2.x and 1.3).