Chapter 15: Shared Tomcat Hosting must be determined
Wednesday, September 23rd, 2009Chapter 15: Shared Tomcat Hosting must be determined is whether Tomcat could handle the servlets and JSPs while distinguishing the various hosts involved. Of course, the Apache Web server can be used to perform additional tasks such as load balancing and clustering. These configuration options are not generally considered for virtual hosting, and are discussed separately in Chapters 11 and 17 . The task of configuring virtual host support in Tomcat consists of two steps adding a virtual host supporting Web application definition, which is sufficient if Tomcat is being run as a standalone server, and adding suitable directives in the Apache configuration file ( $APACHE_HOME/conf/httpd.conf ), if Tomcat is being run as an external Servlet engine. Let s look first at the scenario in which Tomcat is used as a standalone server, serving static pages as well as JSPs and servlets. Example Deployment Scenario Before you continue configuring Tomcat for virtual hosting, take a look at the example deployment scenario that will be used in the rest of the chapter. This section covers configuring Tomcat to serve two fictitious virtual hosts: europa.domand callisto .dom on the same Tomcat instance. To ensure that these domains are really fictitious, we have even chosen the fictitious TLD (top level domain) name dom. In this example, we add our own DNS entries for the virtual hosts, so using a fictitious TLD is not a problem. Naturally, these virtual hosts will be running on the same IP address for name-based virtual hosting, and on different IP addresses for IP-based virtual hosting. It is likely that in a production scenario, both these domains would be hosted on a directory outside the Tomcat base directory. The hosting scheme that is to be used is as follows. Each of the domains would have its own document area in / home/websites/
If you looking for unlimited one inclusive web hosting plan please check unlimited web hosting website.