標籤:des blog http io sp 檔案 on log bs
在 tomcat/webapps/ROOT/ 下建立一個軟串連檔案
ln -s /home/ubuntu/report report
再到report軟串連目錄裡建立個 report.html
通過瀏覽器訪問這個report.html時就出錯。。
錯誤如下:
HTTP Status 404 - report/report.html
--------------------------------------------------------------------------------
type Status report
message rc/aa.html
description The requested resource (/report.html) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.15
在網上尋找了一些資料,終於找到一個可實施的解決方案(http://suchalin.blog.163.com/blog/static/55304677201062644027477/):
修改:tomcat/conf/context.xml,在<Context>中增加 allowLinking="true",如下:
<Context allowLinking="true">
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
修改完成後,儲存,然後重啟下tomcat就ok了!
【轉】tomcat 訪問軟串連檔案夾下的網頁出現404錯誤,description The requested resource (/xxx.html) is not available.