You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by defender <ra...@so-net.com.hk> on 2002/09/04 17:16:03 UTC

Configuring Tomcat 3.2.4 for use with a SecurityManager

All,

  Is it just add the "-security" option in startup batch file?  And if I
want people can only access the "webapps/joe/examples" folder which come
from port 8080 and "webapps/joe/examples" folder which come from port
8443, is it just like showed as below?

 

grant codeBase "file:${tomcat.home}/webapps/joe/examples" {

  permission java.net.SocketPermission "localhost:8080-","listen";

  permission java.util.PropertyPermission "*","read";

};

grant codeBase "file:${tomcat.home}/webapps/bill/examples" {

  permission java.net.SocketPermission "localhost:8443-","listen";

  permission java.util.PropertyPermission "*","read";

};

 

Thanks!

Regards,

Wilson