<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 "%r" %s %b" />
</Host>
</Engine>
</Service>
tomcat部署war项目,并且直接端口访问配置方法
阅读 238
阅读 271
阅读 353
推荐阅读
阅读 1,702
阅读 1,073
阅读 951
阅读 577
阅读 573
阅读 1,047
阅读 569