<!-- 改端口、超时时间、maxPostSize -->
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="2000000"
redirectPort="8443" maxPostSize="20000000"/>
<!-- 添加虚拟域名 -->
<Host name="ssm.yuz.com" appBase="webapps2/testSSM" unpackWARs="true" autoDeploy="true">
<Context path="" docBase="./" reloadable="true" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="testSSM_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<!-- 添加虚拟域名2 -->
<Host name="xxx.yuzfeng.com" appBase="xxx.yuzfeng.com" unpackWARs="true" autoDeploy="true">
<!-- 将项目打包成ROOT.war发布,避免项目启动2次 -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="xxx_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b"/>
</Host>
<!-- 添加虚拟域名 拒绝ip访问 下方name值请改为服务器实际ip地址-->
<Host name="127.0.0.1" appBase="webapps3/ip_forbidden" unpackWARs="true" autoDeploy="true">
<Context path="" docBase="./" reloadable="true" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="ip_forbidden_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>