I have a server which has tomcat installed and have written a Struts web site that i would like to make viewable to the world over the web.
I have a domain name and have changed the name servers to point at my servers IP address which is running tomcat on http port 80(Default). For instance say the name is mydomain.com if someone goes to www.mydomain.com they then see the tomcat welcome page just the same way is if i go to http://localhost:80 on the server running tomcat.
So from this i can see that at least the www.mydomain.com is at least mapping to the correct server.
What i want to know is how to map www.mydomain.com to the actual struts web site running on tomcat, as if on the server i went to http://localhost:80/mydomain
Does anyone know how tomcat maps domains to applications running on tomcat?
If you want the web app to be served without a context path (more accurately, with a context path of "") you'll need to replace the root webapp that Tomcat provides with your own. [ August 04, 2007: Message edited by: Bear Bibeault ]