<Host name="域名1" appBase="C:\LH\apache-tomcat-8.0.35\webapps\项目1"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<Host name="域名2" appBase="C:\LH\apache-tomcat-8.0.35\webapps\项目2"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
tomcat配置多个域名指向不同的项目,且各个域名访问端口相同
最新推荐文章于 2024-03-28 17:29:14 发布