We have all our "jsp" files have an extension of "html" for various reasons. If we invoke the "index.html" page it is not treated as a "jsp". If we rename the *same* page to "index.jsp" it works fine.
We have added a "web.xml" in the webapp/WEB-INF dir which is as follows.
We added the "JkMount /*.html ajp13" to the httpd.conf and we see in the mod_jk.log that a rule is defined for the "/.html" extension but then later it is not matched (see below)
What do we have to do to get a "html" extension of a "jsp" to be served as if it is a "jsp"?
Many thanks...
Barton
===========================web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>
servletToJsp
</servlet-name>
<servlet-class>
org.apache.jasper.runtime.JSPServlet
</servlet-class>
<init-param>
<param-name>
keepgenerated
</param-name>
<param-value>
true
</param-value>
</init-param>
<init-param>
<param-name>
sendErrToClient
</param-name>
<param-value>
true
</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>
servletToJsp
</servlet-name>
<url-pattern>
*.html
</url-pattern>
</servlet-mapping>
</web-app>
============================================
mod_tk.log
[jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open,
rule map size is 1
[jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.html=ajp13 wa\
s added
[jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 1 rules
[jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open,
done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp13
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp13
of ajp13
[jk_ajp13_worker.c (708)]: Into ajp23_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
[jk_ajp13_worker.c (383)]: Into jk_worker_t::validate
[jk_ajp13_worker.c (396)]: In jk_worker_t::validate for worker ajp13
contact is localhost:8009
[jk_ajp13_worker.c (422)]: Into jk_worker_t::init
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker,
done without a match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker,
done without