m
tomcat绑定单个域名应用
绑定Tomcat的单个不同目录的应用配置:
<Host name="app.loocode.dev" appBase="/var/www/loocode-webapp/target/loocode-1.0.0"
unpackWARs="true" autoDeploy="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<Context docBase="/var/www/loocode-webapp/target/loocode-1.0.0" path="/" reloadable="true" />
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="loocode_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>