<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am currently running Apache 2<SPAN 
class=109053601-08052008>.0.52</SPAN> and JBoss 4.2.2 in my environment. I have 
built mod-jk 1.2.26. I have configured<BR>Apache as prescribed to call 
mod-jk.conf (see below). My intent is to have Apache serve all static content 
and have <BR>the specific uri's specified in the map to use Jboss. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>However, the uri maps are not being detected. This 
is what I get in the mod-jk logs:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2>[Sat May 03 17:46:50 2008][5520:2537034048] 
[debug] jk_map_to_storage::mod_jk.c (3190): missing uri map for </FONT><A 
href="http://www.myhost.com:/wiki/skins/monobook/user.gif"><FONT face=Arial 
size=2>www.myhost.com:/wiki/skins/monobook/user.gif</FONT></A><BR><FONT 
face=Arial size=2>[Sat May 03 17:46:50 2008][5521:2537034048] [debug] 
jk_translate::mod_jk.c (3033): missing uri map for </FONT><A 
href="http://www.myhost.com:/var/www/html/images/bm.jpg"><FONT face=Arial 
size=2>www.myhost.com:/var/www/html/images/bm.jpg</FONT></A><BR><FONT face=Arial 
size=2>[Sat May 03 17:46:50 2008][5521:2537034048] [debug] 
jk_map_to_storage::mod_jk.c (3190): missing uri map for </FONT><A 
href="http://www.myhost.com:/var/www/html/images/bm.jpg"><FONT face=Arial 
size=2>www.myhost.com:/var/www/html/images/bm.jpg</FONT></A><BR><FONT face=Arial 
size=2>[Sat May 03 17:46:55 2008][5520:2537034048] [debug] 
jk_translate::mod_jk.c (3033): missing uri map for </FONT><A 
href="http://www.myhost.com:/jmx-console/"><FONT face=Arial 
size=2>www.myhost.com:/jmx-console/</FONT></A><BR><FONT face=Arial size=2>[Sat 
May 03 17:46:55 2008][5520:2537034048] [debug] jk_map_to_storage::mod_jk.c 
(3190): missing uri map for </FONT><A 
href="http://www.myhost.com:/jmx-console/"><FONT face=Arial 
size=2>www.myhost.com:/jmx-console/</FONT></A></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial><FONT size=2>If I change my Virtual Host and place my 
domain name instead of '*', all requests, even for static content, get 
redirected<BR>to mod-jk<SPAN 
class=109053601-08052008>:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=109053601-08052008></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=109053601-08052008>[Wed May 07 
21:34:34 2008][18127:2537034048] 
[debug]<BR>map_uri_to_worker::jk_uri_worker_map.c (682): Attempting to map URI 
'/index.html' from 1 maps<BR>[Wed May 07 21:34:34 2008][18127:2537034048] 
[debug]<BR>find_match::jk_uri_worker_map.c (503): Attempting to map context URI 
'/jkstatus/=status' source 'JkMount'<BR>[Wed May 07 21:34:34 
2008][18127:2537034048] [debug]<BR>jk_map_to_storage::mod_jk.c (3211): no match 
for /index.html found</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=109053601-08052008></SPAN></FONT></FONT><FONT face=Arial 
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any idea what the problem could be? Below is my 
configuration. Thank you. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Extract from httpd.conf:<BR># Virtual 
hosts<BR>#</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Virtual host Default Virtual 
Host<BR>&lt;VirtualHost *&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
JkMountFile 
/etc/httpd/conf/uriworkermap.properties<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ServerSignature email<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
DirectoryIndex index.html index.php index.htm 
index.shtml<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot 
"/var/www/html"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HostNameLookups 
off<BR>&lt;/VirtualHost&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Virtual host Virtual Host 0<BR>&lt;VirtualHost 
&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerAdmin </FONT><A 
href="mailto:webmaster@myhost.com"><FONT face=Arial 
size=2>webmaster@myhost.com</FONT></A><BR><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerSignature 
email<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DirectoryIndex index.html 
index.htm index.shtml<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JkMountCopy 
On<BR>&lt;/VirtualHost&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;VirtualHost 
*:443&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JkMountCopy 
On<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerAdmin </FONT><A 
href="mailto:webmaster@myhost.com"><FONT face=Arial 
size=2>webmaster@myhost.com</FONT></A><BR><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerSignature 
email<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DirectoryIndex index.html 
index.php index.htm index.shtml<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
HostNameLookups off<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot 
"/var/www/html"<BR>&lt;/VirtualHost&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2>uriworkermap.properties:<BR># Mount the Servlet 
context to the ajp13 
worker<BR>/jmx-console=loadbalancer<BR>/jmx-console/*=loadbalancer<BR>/jmx-console/=loadbalancer<BR>/web-console=loadbalancer<BR>/web-console/*=loadbalancer<BR>/jboss=loadbalancer<BR>/jboss/*=loadbalancer<BR>/jkstatus=status<BR>/jkstatus/=status</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial 
size=2>workers.properties:<BR>worker.list=node1,loadbalancer,status</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Define Node1<BR># modify the host as your host IP 
or DNS 
name.<BR>worker.node1.port=8009<BR>worker.node1.host=www.myhost.com<BR>worker.node1.type=ajp13<BR>worker.node1.lbfactor=1<BR># 
worker.node1.connection_pool_size=10 (1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2># Load-balancing 
behaviour<BR>worker.loadbalancer.type=lb<BR>worker.loadbalancer.balance_workers=node1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Status worker for managing load 
balancer<BR>worker.status.type=status</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2>mod-jk.conf: <BR># Where to find 
workers.properties<BR>JkWorkersFile conf/workers.properties</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Where to put jk logs<BR>JkLogFile 
logs/mod_jk.log</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># You can use external file for mount points.<BR># 
It will be checked for updates each 60 seconds.<BR># The format of the file is: 
/url=worker<BR># /examples/*=loadbalancer<BR>#JkMountFile 
/etc/httpd/conf/uriworkermap.properties</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Set the jk log level 
[debug/error/info]<BR>JkLogLevel debug</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Select the log format<BR>JkLogStampFormat "[%a %b 
%d %H:%M:%S %Y]"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># JkOptions indicates to send SSK KEY SIZE<BR># 
Note: Changed from +ForwardURICompat.<BR># See </FONT><A 
href="http://tomcat.apache.org/security-jk.html"><FONT face=Arial 
size=2>http://tomcat.apache.org/security-jk.html</FONT></A><BR><FONT face=Arial 
size=2>#JkOptions +ForwardKeySize +ForwardURICompatUnparsed 
-ForwardDirectories</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># JkRequestLogFormat<BR>JkRequestLogFormat "%w %V 
%T"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Mount your applications<BR>#JkMount 
/__application__/* loadbalancer<BR>#JkMount /jmx-console&nbsp;&nbsp; 
loadbalancer<BR>#JkMount /jmx-console/&nbsp; loadbalancer<BR>#JkMount 
/jmx-console/* loadbalancer<BR>#JkMount /jboss&nbsp;&nbsp; 
loadbalancer<BR>#JkMount /jboss/&nbsp; loadbalancer<BR>#JkMount /jboss/* 
loadbalancer<BR>#JkMount /jkstatus status</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Add shared memory.<BR># This directive is present 
with 1.2.10 and<BR># later versions of mod_jk, and is needed for<BR># for load 
balancing to work properly<BR># Note: Replaced JkShmFile logs/jk.shm due to 
SELinux issues. Refer to<BR># </FONT><A 
href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225452"><FONT 
face=Arial 
size=2>https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225452</FONT></A><BR><FONT 
face=Arial size=2>JkShmFile run/jk.shm</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Add jkstatus for managing runtime 
data</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;Location /jkstatus/&gt;<BR>JkMount 
status<BR>Order deny,allow<BR>Deny from all<BR>Allow from 
127.0.0.1<BR>&lt;/Location&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>