This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I configured Apache web server and Tomcat to work together. Apache uses port 80; Tomcat uses port 9090. If I use localhost to access the servlet by using http://localhost/myServlet, it works fine. But if I use the domain name like http://www.myDomain.com/myServlet, the servlet does not work. Even if I try on the same local computer. There must be configuration problem. For static pages, http://www.myDomain.com just works fine. By the way I am using a Linsys router, and I have configured the router to enable port 9090. Thanks for any help.
How are you getting Apache to forward requests to Tomcat? Are you using mod_jk, Apache conf settings or something else?
Joined: Dec 13, 2004
Yes, I use mod_jk. I configured it according an internet tutorial. The example servlets works fine. I tried to add a context node to the Tomcat server.xml file but added it at a wrong place. I deleted the line and restart Tomcat. Now I can not even make the examples to work. I get error similar to "servlet\examples\HelloServletExample not available". Configuring Tomcat is a headache. I am using windows xp.