Chapter 15: Shared Tomcat Hosting Do the same for callisto.dom by using the following URL, as shown in Figure 15-4 . http://callisto.dom:8080/test.jsp Figure 15-4: test.jsp executing in the Callisto virtual host Here, as you can see from the text Welcome to the Callisto.dom web server in Figure 15-4 , the correct virtual host served up the JSP again. Note that the IP address ( 192.168.1.2) in Figures 15-3 and 15-4 are the same. In this case the Request received by = callisto.dom happens to print the correct host name, but that is just a coincidence. Finally, perform a quick check to determine whether the default host setting of the element is working properly. For this, use a host name other than the ones specified explicitly as definitions. The easiest way to do this is to try accessing the Tomcat server using the IP address 192.168.1.2 and view the results, as shown in Figure 15-5 . Figure 15-5: test.jsp executing in the Europa virtual host, using the IP address As shown by the Welcome to the Europa.dom web server text in Figure 15-5 , Tomcat serves the contents of the europa.domvirtual host, as defined in the default virtual host entry of the Engine. Now that Tomcat is working as a standalone server for the virtual hosts, the next section provides instructions for creating the configuration to work with the Apache HTTPd.
For high quality website hosting services please check tomcat web hosting website.
This entry was posted
on Sunday, September 27th, 2009 at 8:55 pm and is filed under tomcat.
You can follow any responses to this entry through the RSS 2.0 feed.
Responses are currently closed, but you can trackback from your own site.