zhoujun.g 发表于 2017-12-26 11:41:20

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 &quot;%r&quot; %s %b" />
  
  
  <!-- 增加的静态资源映射配置 -->

  
  <Context path="/RecordFile" docBase="/home/lings/recordings">  
</Host>
页: [1]
查看完整版本: tomcat配置外部静态资源映射路径