Chapter 5: Basic Tomcat Confi guration https://www.wrox.com/bookstore/BuyBook/proTomcat5 1.
Chapter 5: Basic Tomcat Confi guration https://www.wrox.com/bookstore/BuyBook/proTomcat5 1. Coyote connector with SSL support (/conf/server.xml) 2. Virtual host name (/conf/server.xml) 3. Context path (in Context Descriptor XML file) 4. Servlet mapping using URL pattern “/BuyBook/” (application’s web.xml) 5. Processed by servlet Figure 5-3: How server.xml and web.xml are involved in URL parsing In the figure, the URL https://www.wrox.com/bookstore/BuyBook/proTomcat5 is parsed through the nested components that make up a Tomcat server. First, the protocol portion ( https://) is parsed by the Service and the Coyote Connector with SSL support is selected, and the request is passed to the Engine. Next, the host name (www.wrox.com) is parsed by the Engine and one of its Host components is selected (the one that matches the www.wrox.comhost name). The Host then attempts to match the URL against the Contexts of its deployed Web applications the match in this case is /bookstore, and the bookstore Web application is selected to handle the request (the Context information itself is stored in a Context descriptor file). Last but not least, the Context hosting the Web application performs a match against the
For high quality website hosting services please check cheap web hosting website.