The 401 response is coming from Tomcat, so I'm guessing that there is
something different in your configuration in the two cases. It looks like
mod_jk is working fine: It is just passing on Tomcat's request that you
login before viewing the page.
Low, Claudia [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I have a problem working on apache-tomcat SSL.
My set up is using apache server to talk to tomcat using mod_jk.
When I access my site using non SSL, it works and can load up the page.
However, when i use SSL, it gives an 401 exception.
The SSL works if I try https://localhost:443/ on my machine.
I couldn't understand why it didn't work. Can anyone also help me to
explain what does sending to ajp13 #NN means?
I believe it's the worker's number (the internal identifier for the worker).
Here is the mod_jk.log.
This is the one that works with port 80.
[Tue Oct 21 19:36:42 2003] [mod_jk.c (497)]: agsp=80 agsn=clow
hostn=clow shostn=localhost cbsport=80 sport=80
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (1546)]: Into
jk_worker_t::get_endpoint
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (1590)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 0
seconds
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (1208)]: Into
jk_endpoint_t::service
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (463)]:
ajp_marshal_into_msgb - Done
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (693)]: sending to
ajp13 #297
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (966)]:
ajp_send_request 2: request body to send 0 - request body to resend 0
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (804)]: received from
ajp13 #156
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (515)]:
ajp_unmarshal_response: status = 200
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (521)]:
ajp_unmarshal_response: Number of headers is = 4
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (575)]:
ajp_unmarshal_response: Header[0] [ETag] = [W/7102-1064919232265]
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (575)]:
ajp_unmarshal_response: Header[1] [Last-Modified] = [Tue, 30 Sep 2003
10:53:52 GMT]
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (575)]:
ajp_unmarshal_response: Header[2] [Content-Type] =
[application/x-javascript]
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (575)]:
ajp_unmarshal_response: Header[3] [Content-Length] = [7102]
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (804)]: received from
ajp13 #7106
[Tue Oct 21 19:36:42 2003] [mod_jk.c (398)]: writing 4096 (4096)
out of 7102
[Tue Oct 21 19:36:42 2003] [mod_jk.c (398)]: writing 3006 (3006)
out of 3006
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (804)]: received from
ajp13 #2
[Tue Oct 21 19:36:42 2003] [jk_ajp_common.c (1521)]: Into
jk_endpoint_t::done, recycling connection
[Tue Oct 21 19:36:54 2003] [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Oct 21 19:36:54 2003] [jk_uri_worker_map.c (477)]: Attempting
to map URI '/webx/xfm/TLMS_W_Menu.xfm'
[Tue Oct 21 19:36:54 2003] [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -
/webx/
[Tue Oct 21 19:36:54 2003] [mod_jk.c (1708)]: Into handler
r-proxyreq=0 r-handler=jakarta-servlet r-notes=8950096 worker=ajp13
[Tue Oct 21 19:36:54 2003] [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
This is the one that doesn't work with 433.
[Tue Oct 21 19:36:54 2003] [jk_worker.c (136)]:
wc_get_worker_for_name, done found a worker
[Tue Oct 21 19:36:54 2003] [mod_jk.c (497)]: agsp=443 agsn=clow
hostn=clow shostn=localhost cbsport=443 sport=443
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (1546)]: Into
jk_worker_t::get_endpoint
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (1590)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 12
seconds
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (1208)]: Into
jk_endpoint_t::service
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (463)]:
ajp_marshal_into_msgb - Done
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (693)]: sending to
ajp13 #406
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (966)]:
ajp_send_request 2: request body to send 0 - request body to resend 0
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (804)]: received from
ajp13 #105
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (515)]:
ajp_unmarshal_response: status = 401
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (521)]:
ajp_unmarshal_response: Number of headers is = 2
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (575)]:
ajp_unmarshal_response: Header[0] [WWW-Authenticate] = [BASIC relam=B2B]
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c (575)]:
ajp_unmarshal_response: Header[1] [Content-Type] =
[text/html;charset=ISO-8859-1]
[Tue Oct 21 19:36:54 2003] [jk_ajp_common.c