在server.xml的host节点下面添加如下xml,如:
<Context path="/medical_society_upload" docBase="k:/file" debug="0" reloadable="true"/>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="/medical_society_upload" docBase="k:/file" debug="0" reloadable="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>
原文地址:http://blog.csdn.net/class_horse/article/details/42705037