IIS->Tomcat Redirect: multiple worker with default -
i trying configure multiple instances of tomcat (7) behind single domain in iis. tomcat instances both run on separate ports. have installed tomcat isapi_rediect.dll , configured iis.
everything works redirector, except (you knew coming) being told "all other traffic must mapped 1 of 2 instances (they different applications). more accurate requests except specific pattern need mapped 1 worker , specific pattern (/rpt) needs go other worker.
i have 2 workers defined in workers.properties:
worker.list=ajp13_1,ajp13_2 worker.ajp13_1.port=8009 worker.ajp13_2.port=8010
and following in uriworkermap.properties:
/wxx|/*=ajp13_1 /rpt|/*=ajp13_2
with this, seems fine. except (considerable) number of request not include wxx scope. need map rpt , sub content ajp3_2 , other requests ajp3_1.
if add
/|*=ajp13_1
then ajp3_2 becomes unreachable , wildchar match maps /rpt/* uri ajp3_1.
is there way trying do? appreciate help- have spent time reading same references on , over.
the tomcat connector matching in 2 passes. first pass includes host, second pass not. if had request like:
http://www.mydomain.com/rpt/somepage.jsp
the connector try first match "/www.mydomain.com/rpt/somepage.jsp" against available mappings , if none of them matched try "/rpt/somepage.jsp". means default mapping ("/*") thing matches on first pass since none of other mappings account host. believe achieve desired results following:
/*/rpt|/*=ajp13_2 /|*=ajp13_1
Comments
Post a Comment