Tomcat 配置默认虚拟路径
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context path="/" docBase="/mnt2/apache-tomcat-wechat/webapps/wechat_web"></Context>
注意: appBase="webapps" 一定要写(不然会解压到$TOMCAT_HOME下面),docBase="wechat_web"写虚拟路径即可