Chapter 15: Shared Tomcat Hosting The following list

Chapter 15: Shared Tomcat Hosting The following list summarizes the steps you need to take to configure name-based virtual hosting in Tomcat (standalone): 1. Make DNS changes, or edit hosts file for the hosts that you wish to run Tomcat on. In name- based virtual hosting, different host names share the same IP address. 2. Create your deployment structure for the virtually hosted Web sites. This will be required when setting the appBase for the Web site s entries. 3. Edit Tomcat s server.xml, and modify the directive, setting the default virtual host, as shown earlier. 4. Add entries inside the directive for each virtual host. 5. Make sure that the appBasein each points to the location of the Web site content for that host. 6. Optionally, configure access log valves and contexts for each virtual host inside the entry. 7. Restart Tomcat. You should now be able to start your browser and view the respective Web sites. You can do this using only the host names of the Web sites ( http://callisto.dom:8080/ test.jsp, http://europa.dom:8080/test.jsp). If you use the IP address, Tomcat will serve you content from the default virtual host, as specified in your directive. IP -Based Virtual Hosting in Tomcat Support for IP-based virtual hosting in a standalone Tomcat configuration is new; it was introduced in Tomcat version 5.5, and is not supported by versions earlier than that. If you are testing name- and IP-based configurations with the same client machine, note that resolved IP addresses are often cached locally. Remember to clear the client cache before testing, or you might get spurious results. On Windows, for instance, the ipconfig /flushdnscommand clears out the local DNS resolver cache. The configuration required for using IP-based virtual hosting is similar to that of name-based, with one difference: (continued)

If you looking for unlimited one inclusive web hosting plan please check cheap web hosting website.

Comments are closed.