Tomcat修改默认网站首页目录

vim /app/tomcat/conf/server.xml
#appBase 定义站点目录
#docBase 定义首页目录
...
<Host name="localhost"  appBase="webapps"  unpackWARs="true" autoDeploy="true">
<Context path="" docBase="/app/tomcat/webapps/test" debug="0" reloadable="false"
crossContext="true"/>
...
</Host>