Create a soft connection file under tomcat/webapps/root/
Ln-s/home/ubuntu/report Report
and create a report.html in the report soft link directory.
There was an error accessing this report.html through the browser.
The error is as follows:
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
Find some information on the Internet and finally find a solution that can be implemented (http://suchalin.blog.163.com/blog/static/55304677201062644027477/):
Modified: Tomcat/conf/context.xml, add allowlinking= "true" in <Context>, as follows:
<context allowlinking= "true" >
<!--Default set of monitored resources--
<WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
Once the modifications are complete, save and restart Tomcat on the OK!
The "Go" Tomcat access page under the Soft Connection folder appears with a 404 error, description The requested resource (/xxx.html) is not available.