tomcat无法访问符号链接的失败

背景:

Tomcat 项目将访问静态源, 比如图片和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. 错误 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=”真正” 在 <Context />

as shown in following figure.

allowlink

发表评论