tomcat部署war项目,并且直接端口访问配置方法

Freeder
阅读 466
<Service name="8087Port">
     <Connector port="8087" protocol="HTTP/1.1" connectionTimeout="20000" useBodyEncodingForURI="true" redirectPort="8443"/>
          <Engine name="" defaultHost="127.0.0.1">
          <!-- 如果想要IP直接访问到,appBase中不要填内容,如:localhost:8087 -->
          <Host name="127.0.0.1" appBase="" unpackWARs="true" autoDeploy="true">
               <!--<Alias>127.0.0.1</Alias>-->
               <Context path="" docBase="webapps/xxx.war" privileged="true"/>
               <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                    prefix="door_log" suffix=".txt"
                    pattern="%h %l %u %t &quot;%r&quot; %s %b" />
          </Host>
     </Engine>
</Service>
回到顶部