The fails that tomcat can not access symbol link

Background:

Tomcat project will access static source, such as images and html, and the static source stored in

extrnal dictionary.

we want to link the extrnal dictionary to tomcat webapps/ROOT/. But I found that tomcat can not

access the static source

in extrnal dictionary. error 404 in web brower.

How to solve this problem?

I checked many materials and discovered that tomcat disallow to access symbol link in default.

so we can edit configuration file Context.xml, Adding allowLinking=”true” in <Context />

as shown in following figure.

allowlink

Leave a Reply