Hi,
Hope this is not off-topic on this list.
I am new to tomcat and have recently set up the bridge between apache
and tomcat. I am able to access the pages if I access them directly.
But when one servlet forwards the request to another I get an error.
For example here is what I have in my http.conf file --
<IfModule proxy_module>
ProxyPreserveHost On
ProxyPass /test/ ajp://127.0.0.1:8009/A/
</IfModule>
I am able to call www.example.com/test/jsp/hi.jsp. The problem happens
when I call a servlet like -- www.example.com/test/hello
The hello is a servlet that sends back hi.jsp by using the following code --
RequestDispatcher req = request.getRequestDispatcher("/jsp/hi.jsp");
req.forward(request, response);
where request and response and the HttpServletRequest and Response respectively.
I get the following error -- The resource /A/jsp/hi.jsp is not available.
Obviously the URL needs to be changed /A/jsp/hi.jsp to
/test/jsp/hi.jsp and I believe the mo_proxy can be configured to do
this. But I am not able to find it. Can someone point me to the right
direction?
- Vas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]