DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39452>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39452

           Summary: IIS ISAPI MOD_JK omits headers when run as application
                    extension
           Product: Tomcat 5
           Version: 5.5.17
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I wanted the default document in IIS to be index.jsp and handled by Tomcat. I 
couldn't write a URI rule to match this so I configured isapi_redirect.dll to 
run as an application extension for .jsp. I found this didn't work in all 
browsers. I use virtual hosts and depending on what browser I used, Tomcat 
wasn't matching the host in server.xml. The reason is jk_isapi_plugin.c was 
omitting the last two headers in all cases, assuming they were the special 
ones added by the filter. In my case those two weren't there and depending on 
what headers a certain browser sent, HTTP_HOST was one of the last two that 
got ommitted.

Since there was already code to ignore the special headers if they weren't 
skipped by subtracting 2 off the header count, I just had to comment out one 
line of code:
   cnt -= 2;           /* For our two special headers:
and insert one:
   cnt--;
just after the if clause that starts with:
   if (!strnicmp(tmp, URI_HEADER_NAME, strlen(URI_HEADER_NAME))

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to