【轉】tomcat 訪問軟串連檔案夾下的網頁出現404錯誤,description The requested resource (/xxx.html) is not available.

來源:互聯網
上載者:User

標籤: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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.