Bug 44738

Summary: mod_jk-1.2.26 does not work in virtualhost
Product: Tomcat Connectors Reporter: SASAJIMA,Toshihiro <sasajima>
Component: CommonAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: Sun   
OS: Solaris   
Attachments: This patch handles JkOptions correctly

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

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