S
sonnel
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!
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!