1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<Context path= ""  docBase= ""  reloadable= "false"  />
1.如果配置docBase,比如 /opt/ae/test
那么的项目存放的地方在 /opt/ae/test
2.如果path也配置的话
那么url访问地址,
完整的server.xml配置
<Connector port= "8585"  protocol= "HTTP/1.1"
                connectionTimeout= "20000"
                redirectPort= "8443"  />
<Connector port= "8080"  protocol= "org.apache.coyote.http11.Http11AprProtocol"
               URIEncoding= "UTF-8"
               minSpareThreads= "25"
               maxSpareThreads= "75" 
               enableLookups= "false"
               disableUploadTimeout= "true"      
               connectionTimeout= "20000"
               acceptCount= "300"
               maxThreads= "300"
               maxProcessors= "1000"
               minProcessors= "5"
               useURIValidationHack= "false"
      redirectPort= "8443"  />
<Host name= "test.com"   appBase= "webapps"  unpackWARs= "false"  autoDeploy= "false" >
<Context path= "/test"  docBase= "/opt/xx/test/"  reloadable= "false"  />
<Valve className= "org.apache.catalina.valves.AccessLogValve"  directory= "/opt/logs/"  prefix= "eascs-o2o-h5"  suffix= ".log"  pattern= "%h %l %u %t &quot;%r&quot; %s %b"  />