tomcat配置外部静态资源映射路径
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"><!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -->
<!--
<Valve>
-->
<!-- Access log processes all example.Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" -->
<Valve>
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<!-- 增加的静态资源映射配置 -->
<Context path="/RecordFile" docBase="/home/lings/recordings">
</Host>
页:
[1]