<!-- 鍔犺澆resin/lib涓嬬殑鎵鏈?jar鏂囦歡-->
<class-loader>
<tree-loader path="${resin.home}/lib"/>
<tree-loader path="${resin.root}/lib"/>
</class-loader>
<!-- - 綆$悊閰嶇疆 -->
<management path="${resin.root}/admin">
</management>
<!-- -JDK鏃ュ織鎺ュ彛鐨勯厤緗? -->
<log name="" path="stdout:" timestamp="[%H:%M:%S.%s] "/>
<!-- 鏃ュ織淇℃伅鐨勭駭鍒細'info' 鐢熶駭鐜 'fine' 寮鍙戠幆澧?'finer' 璋冭瘯鐜 -->
<logger name="com.caucho" level="info"/>
<logger name="com.caucho.java" level="config"/>
<logger name="com.caucho.loader" level="config"/>
<!-- - 鐜涓婁笅鏂囩殑媯嫻嬫椂闂達紝瀵逛簬鐢熶駭绔欑偣, 榪欎釜瑕佽緗暱涓鐐癸紝渚嬪600縐掞紝10鍒嗛挓 -->
<dependency-check-interval>2s</dependency-check-interval>
<!-- - 鍙戦侀偖浠墮氱煡鐨凷MTP鏈嶅姟鍣?-->
<system-property mail.smtp.host="127.0.0.1"/>
<system-property mail.smtp.port="25"/>
<!-- - 浣犲彲浠ユ妸緙栬瘧鍣ㄦ敼鎴?"javac", "eclipse" 鎴栬?"internal". -->
<javac compiler="internal" args="-source 1.5"/>
<!-- Security providers.
- <security-provider>
- com.sun.net.ssl.internal.ssl.Provider
- </security-provider>
-->
<!-- 鍘繪帀娉ㄩ噴錛屽鏋滀綘浣跨敤resin鎻愪緵鐨剎ml搴旂敤
-
- <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">
<!-- 璁劇疆闆嗙兢涓婁笅鏂囩殑鏍? 鐩稿浜巗erver.root -->
<root-directory>.</root-directory>
<server-default>
<!-- HTTP鏈嶅姟鐨勭鍙?->
<http address="*" port="8080"/>
<!--
- SSL绔彛閰嶇疆:
-
- <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鍙傛暟璁劇疆 -->
<jvm-arg>-Xmx256m</jvm-arg>
<jvm-arg>-Xss1m</jvm-arg>
<jvm-arg>-Xdebug</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
<!-- Uncomment to enable admin heap dumps 鍘繪帀榪欎釜濡傛灉浣犳兂綆$悊鍐呭瓨鍫嗙殑鍊懼?br />
- <jvm-arg>-agentlib:resin</jvm-arg>
-->
<watchdog-arg>-Dcom.sun.management.jmxremote</watchdog-arg>
<!-- 寮哄埗resin寮哄埗閲嶈搗鏃剁殑鏈灝忕┖闂插唴瀛?-->
<memory-free-min>1M</memory-free-min>
<!-- 鏈澶х嚎紼嬫暟閲? -->
<thread-max>256</thread-max>
<!-- 濂楁帴瀛楃瓑寰呮椂闂?-->
<socket-timeout>65s</socket-timeout>
<!-- 閰嶇疆 keepalive -->
<keepalive-max>128</keepalive-max>
<keepalive-timeout>15s</keepalive-timeout>
<!-- - 濡傛灉浣跨敤鐨勬槸UNIX,榪欓噷鏄惎鍔ㄧ殑甯愬彿鍜岀敤鎴風粍.
- <user-name>resin</user-name>
- <group-name>resin</group-name>
-->
</server-default>
<!-- 瀹氫箟緹ら泦鏈嶅姟鍣?-->
<server id="" address="127.0.0.1" port="6800"/>
<!-- Configures the persistent store for single-server or clustered 閰嶇疆鐙珛鏈嶅姟鍣ㄦ垨鑰呯兢闆嗙殑鎸佷箙鍖栧瓨鍌紝涓撲笟鐗堢殑鍔熻兘 -->
<resin:if test="${resin.isProfessional()}">
<persistent-store type="cluster">
<init path="session"/>
</persistent-store>
</resin:if>
<!-- 涓轟簡瀹夊叏, 浣犲彲浠ヤ負SSL浼氳瘽(SSL sessions)瀹氫箟涓涓笉鍚岀殑cookie.
- <ssl-session-cookie>SSL_JSESSIONID</ssl-session-cookie>
-->
<!-- 緙撳瓨鍚敤 (涓撲笟鐗堢殑鍔熻兘) -->
<resin:if test="${isResinProfessional}">
<cache path="cache" memory-size="64M">
<!-- Vary header rewriting for IE -->
<rewrite-vary-as-private/>
</cache>
</resin:if>
<!-- 鍚敤鍛ㄦ湡鎬х殑鏈嶅姟鍣ㄧ姸鎬佹鏌ュ拰姝婚攣媯鏌ワ紝鎵鏈夌殑鏈嶅姟鍣ㄥ彲浠ユ坊鍔?<url> 鏉ユ鏌ャ?-->
<resin:if test="${isResinProfessional}">
<ping>
<!-- <url>http://localhost:8080/test-ping.jsp</url> -->
</ping>
</resin:if>
<!-- 鍖呭惈web搴旂敤鐨勯粯璁よ涓?-->
<resin:import path="${resin.home}/conf/app-default.xml"/>
<!-- 姣忎竴涓獁eb搴旂敤鐨勯粯璁ゅ弬鏁?-->
<<SPAN class=hilite1>web-app-default</SPAN>>
<!-- 鎵╁睍搴撶殑鍏叡jar鏂囦歡錛屾墿灞曟槸瀹夊叏鐨勫嵆浣挎病鏈夌被瑁呰澆鍣ㄧ煡閬撶殑jars錛岃杞界殑綾誨皢涓烘瘡涓簲鐢ㄥ垎鍒杞斤紝涔熷氨鏄繖浜涚被閮芥槸涓嶅悓鐨?->
<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"/>
<!-- 鍚敤EL琛ㄨ揪寮?-->
<allow-servlet-el/>
<!-- 瀹夊叏鍘熷洜, 榛樿紱佺敤浜嗕細璇濈殑URLs -->
<session-config>
<enable-url-rewriting>false</enable-url-rewriting>
</session-config>
<!-- 瀹夊叏鍘熷洜, 鍦╟ookies涓緗瓾ttpOnly鏍囧織
- <cookie-http-only/>
-->
<!--涓浜汮SP鍖呮湁涓嶆紜殑 .tld鏂囦歡銆傚彲浠ユ妸validate-taglib-schema璁劇疆鎴恌alse,鍙兘緇х畫姝e父宸ヤ綔
- Some JSP packages have incorrect .tld files. It's possible to set validate-taglib-schema to false to work around these
packages.
-->
<jsp>
<validate-taglib-schema>true</validate-taglib-schema>
<fast-jstl>true</fast-jstl>
<fast-jsf>true</fast-jsf>
</jsp>
</<SPAN class=hilite1>web-app-default</SPAN>>
<!-- 綆鍗曠殑鏁版嵁姹犻厤緗?br />
- 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>
<!-- 濡傛灉鍜屽埆鐨剋eb鏈嶅姟鍣ㄦ暣鍚堬紝榪欎釜鍙互琚幓鎺夛紝鍥犱負web鏈嶅姟鍣ㄤ篃鍙互璁板綍榪欎簺淇℃伅銆?-->
<access-log path="logs/access.log" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' rollover-period="1W"/>
<!-- war 鏂囦歡鐨勫竷緗洰褰?-->
<web-app-deploy path="webapps"/>
<!-- ear鏂囦歡鐨勫竷緗洰褰?-->
<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>
<!-- rar鏂囦歡鐨勫竷緗洰褰?-->
<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=".">
<!-- 閰嶇疆榛樿鐨勫簲鐢?webapp's ROOT -->
<web-app id="/" root-directory="webapps/ROOT"/>
<web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
<!-- - 綆$悊搴旂敤紼嬪簭 /resin-admin
- password is the md5 hash of the password銆俶d5鐮佺殑瀵嗙爜銆?br />
- localhost is true to limit access to the localhost銆俵ocalhost璁劇疆鎴恡rue,榪欐牱鍙湁localhost鎵嶈兘璁塊棶
-->
<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>
<!-- - Configuration for the web-tier/load-balancer -->
<resin:if test="${resin.isProfessional()}">
<cluster id="web-tier">
<server-default>
<!-- The http port -->
<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>