Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

symlink outside of docroot area

wenzhou wang

2005-10-11


I have a question regarding TOMCAT 5.5.9. Hope to get help from folks
who have the knowledge and experience.
I try to create a symbolic link from the docroot area in tomcat
5.5.9($Catalina_HOME/webapps/ROOT) to a directory in my Solaris file
system which has read/write permission to all users. The server is
internal which has no access to outside world, so security is not a
concern. The problem is that now when I try to load the directory from
the browser, http://myhost:port/mydirectory, I got a HTTP 404 security
error. I added following attributes in the ROOT/WEB-INF/web.xml file,
but it doesn't help:
<context-param>
  <param-name>allowLinking</param-name>
  <param-value>true</param-value>
</context-param>

Can you tell whether I can do this and if yes, how?

Thanks.

Wenzhou

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.