The AJP code doesn't set the is_ssl field in the outbound data. This causes tomcat to think that every connection is really coming in on http. Without this data, any redirects generated by tomcat that should go back to an https URL on apache get sent to http instead. I'm sure other stuff goes wrong, too.
Created attachment 14065 [details] Patch to use mod_ssl hooks to detect is_ssl This patch adds in functions to load and wrap the ssl_is_https function similar to the other ssl optional hooks and sets is_ssl in the ajp_header code according to the return value from the ssl code.
Commited, thanks. I only rename the function from is_ssl to is_https.