在文中有这么一段话: One or more Host elements are nested inside an Engine element. Inside the Host element, you can nest Context elements for the web applications associated with this virtual host. Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine.
1<!-- Example Server Configuration File --> 2<!-- Note that component elements are nested corresponding to their 3 parent-child relationships with each other --> 4 5<!-- A "Server" is a singleton element that represents the entire JVM, 6 which may contain one or more "Service" instances. The Server 7 listens for a shutdown command on the indicated port. 8 9 Note: A "Server" is not itself a "Container", so you may not 10 define subcomponents sUCh as "Valves" or "Loggers" at this level. 11 --> 12 13<Server port="8005" shutdown="SHUTDOWN"> 14 15 <!-- Comment these entries out to disable JMX MBeans support used for the 16 administration web application --> 17 <Listener className="org.apache.catalina.core.AprLifecycleListener" /> 18 <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />