tomcat access soft link resources 404 solutions

Yesterday the project of upgrading old tomcat from 6-7, and found that the project can not access resources inside

I had to use the ln -s way to link the resource directory to

After the upgrade access appears 404

View documents found tomcat7, JBoss web server such as the default resource block access to flexible connections

The following configuration needs to be done

Context.xml modify files in the tomcat's conf folder

AllowLinking added in the tag = "true";

<Context allowLinking="true">

Restart tomcat to access the resources

Published 32 original articles · won praise 26 · views 110 000 +

Guess you like

Origin blog.csdn.net/mayifan0/article/details/104657316