server.xml:
1. Change webapps location:
<Host name="localhost" appBase="/usr/local/bio1/data/webpage/tomcat/webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
2. Use mysql to control user info:
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/tomcat"
connectionName="tomcat" connectionPassword="Apachetomcat"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home