I have a Java application running on Tomcat 5.5.17 over Apache 2
through JK connector. The tree of the application looks like this
<ROOT>
- include.jsp
- /images
- /js
- /public
- test.jsp
- /META-INF
- /WEB-INF
....
I configure *.do to route to forward to Tomcat from Apache.
# httpd.conf
...
<VirtualHost *:80>
...
JkMount /*.do worker1
JkMount /*.jsp worker1
JkMount /public/* worker1
...
</VirtualHost>
...
# eof
# workers.properties
...
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
...
# eof
I can access most of the action classes and other pages.
The problem is when I access resouces under /public, the server returns
error.
For /public/*.do, the server response 404.
For /public/*.jsp, the jsp seems to see /public as the context root and
that makes it cannot include the resouces from the parent directory. Am
I missing something. Please help.
Thanks!
sonnel@gmail.com - 25 May 2006 16:37 GMT
The versions are as follows
Apache 2.0.54
mod_jk 1.2.10
sonnel@gmail.com - 25 May 2006 16:54 GMT
More details...
# httpd.conf
...
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
...
# eof
And the 404 response is from Tomcat rather than Apache...