< resin xmlns = "http://caucho.com/ns/resin" xmlns:resin = "http://caucho.com/ns/resin/core" >
< class-loader >
< tree-loader path = "${resin.home}/lib" />
< tree-loader path = "${resin.root}/lib" />
class-loader >
< management path = "${resin.root}/admin" >
management >
< log name = "" path = "stdout:" timestamp = "[%H:%M:%S.%s] " />
< logger name = "com.caucho" level = "info" />
< logger name = "com.caucho.java" level = "config" />
< logger name = "com.caucho.loader" level = "config" />
< dependency-check-interval > 2s dependency-check-interval >
< system-property mail.smtp.host = "127.0.0.1" />
< system-property mail.smtp.port = "25" />
< javac compiler = "internal" args = "-source 1.5" />
< security-provider >
com.sun.net.ssl.internal.ssl.Provider
security-provider >
< system-property javax.xml.parsers.DocumentBuilderFactory
="com.caucho.xml.parsers.XmlDocumentBuilderFactory" />
< system-property javax.xml.parsers.SAXParserFactory
="com.caucho.xml.parsers.XmlSAXParserFactory" />
< cluster id = "app-tier" >
< root-directory > . root-directory >
< server-default >
< http address = "*" port = "8080" />
< http address = "*" port = "8443" >
< openssl >
< certificate-file > keys/gryffindor.crt certificate-file >
< certificate-key-file > keys/gryffindor.key certificate-key-file >
< password > test123 password >
openssl >
http >
< jvm-arg > -Xmx256m jvm-arg >
< jvm-arg > -Xss1m jvm-arg >
< jvm-arg > -Xdebug jvm-arg >
< jvm-arg > -Dcom.sun.management.jmxremote jvm-arg >
< jvm-arg > -agentlib:resin jvm-arg >
< watchdog-arg > -Dcom.sun.management.jmxremote watchdog-arg >
< memory-free-min > 1M memory-free-min >
< thread-max > 256 thread-max >
< socket-timeout > 65s socket-timeout >
< keepalive-max > 128 keepalive-max >
< keepalive-timeout > 15s keepalive-timeout >
< user-name > resin user-name >
< group-name > resin group-name >
server-default >
< server id = "" address = "127.0.0.1" port = "6800" />
< resin:if test = "${resin.isProfessional()}" >
< persistent-store type = "cluster" >
< init path = "session" />
persistent-store >
resin:if >
< ssl-session-cookie > SSL_JSESSIONID ssl-session-cookie >
< resin:if test = "${isResinProfessional}" >
< cache path = "cache" memory-size = "64M" >
< rewrite-vary-as-private />
cache >
resin:if >
< resin:if test = "${isResinProfessional}" >
< ping >
ping >
resin:if >
< resin:import path = "${resin.home}/conf/app-default.xml" />
< web-app-default >
< class-loader >
< tree-loader path = "${server.root}/ext-webapp" />
class-loader >
< cache-mapping url-pattern = "/" expires = "5s" />
< cache-mapping url-pattern = "*.gif" expires = "60s" />
< cache-mapping url-pattern = "*.jpg" expires = "60s" />
< cache-mapping url-pattern = "*.png" expires = "60s" />
< allow-servlet-el />
< session-config >
< enable-url-rewriting > false enable-url-rewriting >
session-config >
< cookie-http-only />
< jsp >
< validate-taglib-schema > true validate-taglib-schema >
< fast-jstl > true fast-jstl >
< fast-jsf > true fast-jsf >
jsp >
web-app-default >
The JDBC name is java:comp/env/jdbc/test
< database >
< jndi-name > jdbc/mysql jndi-name >
< driver type = "org.gjt.mm.mysql.Driver" >
< url > jdbc:mysql://localhost:3306/test url >
< user > user >
< password > password >
driver >
< prepared-statement-cache-size > 8 prepared-statement-cache-size >
< max-connections > 20 max-connections >
< max-idle-time > 30s max-idle-time >
database >
< host-default >
< access-log path = "logs/access.log" format = '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' rollover-period = "1W" />
< web-app-deploy path = "webapps" />
< ear-deploy path = "deploy" >
< ear-default >
< ejb-server >
< config-directory > WEB-INF config-directory >
< data-source > jdbc/test data-source >
ejb-server >
ear-default >
ear-deploy >
< resource-deploy path = "deploy" />
host-default >
< host-deploy path = "hosts" >
< host-default >
< resin:import path = "host.xml" optional = "true" />
host-default >
host-deploy >
< host id = "" root-directory = "." >
< web-app id = "/" root-directory = "webapps/ROOT" />
< web-app id = "/resin-admin" root-directory = "${resin.home}/php/admin" >
< prologue >
< resin:set var = "resin_admin_user" value = "" />
< resin:set var = "resin_admin_password" value = "" />
< resin:set var = "resin_admin_external" value = "false" />
prologue >
web-app >
host >
cluster >
< resin:if test = "${resin.isProfessional()}" >
< cluster id = "web-tier" >
< server-default >
< http address = "*" port = "9080" />
server-default >
< server id = "web-a" address = "127.0.0.1" port = "6700" />
< cache path = "cache" memory-size = "64M" />
< host id = "" >
< web-app id = "/" >
< rewrite-dispatch >
< load-balance regexp = "" cluster = "app-tier" />
rewrite-dispatch >
web-app >
host >
cluster >
resin:if >
resin >
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/afeilxc/archive/2008/11/28/3400080.aspx