[{"data":1,"prerenderedAt":323},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2005\u002F05\u002F22\u002Flibapache-mod-jk-under-sarge\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":307,"date":308,"description":213,"embedImage":307,"extension":309,"image":307,"intro":307,"meta":310,"navigation":311,"path":312,"seo":313,"series":307,"sitemap":314,"stem":315,"tags":316,"__hash__":322},"content\u002F2005\u002F05\u002F22\u002Flibapache-mod-jk-under-sarge.md","libapache-mod-jk under sarge",{"type":208,"value":209,"toc":304},"minimark",[210,214,217,220,232,239,242,253,256,259,282,285,291,294,300],[211,212,213],"p",{},"Sarge installation. Apache is 1.3.x (packaged). JBoss is 3.2.7 with tomcat.",[211,215,216],{},"Aim: ajp13 working",[211,218,219],{},"For each (or at least several) virtual host under apache we have an equivalent webapp running under jboss. We'd like to use apache as the front end server.",[211,221,222,223],{},"So - here's an example app URL: ",[224,225,226],"a",{"href":226,"rel":227,"target":231},"http:\u002F\u002Fhostname:8080\u002Fapp\u002F",[228,229,230],"nofollow","noopener","noreferer","_blank",[211,233,234,235],{},"This should be accessable under: ",[224,236,237],{"href":237,"rel":238,"target":231},"http:\u002F\u002Fhostname\u002Fapp\u002F",[228,229,230],[211,240,241],{},"mod_rewrite will be used to handle",[243,244,250],"pre",{"className":245,"code":247,"language":248,"meta":249},[246],"language-text","    http:\u002F\u002Fhostname\u002F -> http:\u002F\u002Fhostname\u002Fapp\u002F\n","text","",[251,252,247],"code",{"__ignoreMap":249},[211,254,255],{},"since some things are apache only (awstats etc).",[211,257,258],{},"First - get libapache-mod-jk installed",[243,260,264],{"className":261,"code":262,"language":263,"meta":249,"style":249},"language-shell shiki shiki-themes github-dark","apt-get install libapache-mod-jk\n","shell",[251,265,266],{"__ignoreMap":249},[267,268,271,275,279],"span",{"class":269,"line":270},"line",1,[267,272,274],{"class":273},"svObZ","apt-get",[267,276,278],{"class":277},"sU2Wk"," install",[267,280,281],{"class":277}," libapache-mod-jk\n",[211,283,284],{},"Then - to httpd.conf - near the end but before the include of conf.d add",[243,286,289],{"className":287,"code":288,"language":248,"meta":249},[246],"\u003CIfModule mod_jk.c>\n    JkWorkersFile \u002Fetc\u002Flibapache-mod-jk\u002Fworkers.properties\n\u003C\u002FIfModule>\n",[251,290,288],{"__ignoreMap":249},[211,292,293],{},"Finally - in the virtual host config for each virtual host (we use separate files under conf.d) add",[243,295,298],{"className":296,"code":297,"language":248,"meta":249},[246],"# Set up the ajp13 link\nJkMount \u002Fapp\u002F* local\nJkMount \u002Fapp local\n# mod_rewrite required\nRewriteEngine on\n# Don't rewrite if app is already there - \u002Fapp\u002Fapp\u002Fapp etc is not fun\nRewriteCond %{REQUEST_URI} !^\u002Fapp\n# For any other paths that apache should handle directly e.g. awstats,\n# webalizer, any php stuff add similar lines to this one here\nRewriteCond %{REQUEST_URI} !^\u002Flog\n# Then handle anything that should be sent to the ajp13 redirect\nRewriteRule ^\u002F(.*) http:\u002F\u002Fhostname\u002Fapp\u002F$1 [R]\n",[251,299,297],{"__ignoreMap":249},[301,302,303],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":249,"searchDepth":305,"depth":305,"links":306},2,[],null,"2005-05-22 14:44:09 +0200","md",{},true,"\u002F2005\u002F05\u002F22\u002Flibapache-mod-jk-under-sarge",{"title":206,"description":213},{"loc":312},"2005\u002F05\u002F22\u002Flibapache-mod-jk-under-sarge",[317,318,319,320,321],"java","debian","apache","tomcat","ajp13","FwIgXZ-ozXCB8whLHBtIqZ7W1dwgsGQn3clqpgfXCTU",1775293017129]