tomcat配置多个域名指向不同的项目,且各个域名访问端口相同
程序员文章站
2022-05-26 11:01:52
...
<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>