0 官方文档
整体: https://tomcat.apache.org/tomcat-9.0-doc/architecture/overview.html.
server: https://tomcat.apache.org/tomcat-9.0-doc/config/server.html.
service: https://tomcat.apache.org/tomcat-9.0-doc/config/service.html.
Engine: https://tomcat.apache.org/tomcat-9.0-doc/config/engine.html.
host: https://tomcat.apache.org/tomcat-9.0-doc/config/host.html.
HTTP Connector: https://tomcat.apache.org/tomcat-9.0-doc/config/http.html.
context: https://tomcat.apache.org/tomcat-9.0-doc/config/context.html.
1 图示
2 说明
仅有一个server
一个server包含多个service
一个service包含多个connector和一个engine
一个engine包含多个host
一个host包含多个context
3 关键词解释
connector:从端口中读取数据,并把数据转成httpRequest:向端口中写数据,数据来自httpResponse
host: 域名,根据uri进行匹配: 如:www.xxxcompany.com
context:webApp,根据uri进行匹配: 如xxxapp.war