resin 配置文件中文说明

阅读更多
xml 代码
 
  1.   
  2. <resin xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core">  
  3.     
  4.   <class-loader>  
  5.     <tree-loader path="${resin.home}/lib"/>  
  6.     <tree-loader path="${resin.root}/lib"/>  
  7.   class-loader>  
  8.     
  9.   <management path="${resin.root}/admin">  
  10.   management>  
  11.     
  12.   <log name="" path="stdout:" timestamp="[%H:%M:%S.%s] "/>  
  13.     
  14.   <logger name="com.caucho" level="info"/>  
  15.   <logger name="com.caucho.java" level="config"/>  
  16.   <logger name="com.caucho.loader" level="config"/>  
  17.     
  18.   <dependency-check-interval>2sdependency-check-interval>  
  19.     
  20.   <system-property mail.smtp.host="127.0.0.1"/>  
  21.   <system-property mail.smtp.port="25"/>  
  22.     
  23.   <javac compiler="internal" args="-source 1.5"/>  
  24.   
  25.     
  26.       <security-provider>  
  27.          com.sun.net.ssl.internal.ssl.Provider  
  28.       security-provider>  
  29.   
  30.     
  31.         
  32.       <system-property javax.xml.parsers.DocumentBuilderFactory  
  33.                       ="com.caucho.xml.parsers.XmlDocumentBuilderFactory"/>  
  34.       <system-property javax.xml.parsers.SAXParserFactory  
  35.                       ="com.caucho.xml.parsers.XmlSAXParserFactory"/>  
  36.     
  37.   <cluster id="app-tier">  
  38.       
  39.     <root-directory>.root-directory>  
  40.     <server-default>  
  41.         
  42.       <http address="*" port="8080"/>  
  43.         
  44.             
  45.           <http address="*" port="8443">  
  46.             <openssl>  
  47.               <certificate-file>keys/gryffindor.crtcertificate-file>  
  48.               <certificate-key-file>keys/gryffindor.keycertificate-key-file>  
  49.               <password>test123password>  
  50.             openssl>  
  51.           http>  
  52.          
  53.         
  54.       <jvm-arg>-Xmx256mjvm-arg>  
  55.       <jvm-arg>-Xss1mjvm-arg>  
  56.       <jvm-arg>-Xdebugjvm-arg>  
  57.       <jvm-arg>-Dcom.sun.management.jmxremotejvm-arg>  
  58.         
  59.           <jvm-arg>-agentlib:resinjvm-arg>  
  60.   
  61.       <watchdog-arg>-Dcom.sun.management.jmxremotewatchdog-arg>  
  62.         
  63.       <memory-free-min>1Mmemory-free-min>  
  64.         
  65.       <thread-max>256thread-max>  
  66.         
  67.       <socket-timeout>65ssocket-timeout>  
  68.         
  69.       <keepalive-max>128keepalive-max>  
  70.       <keepalive-timeout>15skeepalive-timeout>  
  71.         
  72.           <user-name>resinuser-name>  
  73.           <group-name>resingroup-name>  
  74.         
  75.     server-default>  
  76.       
  77.     <server id="" address="127.0.0.1" port="6800"/>  
  78.       
  79.     <resin:if test="${resin.isProfessional()}">  
  80.       <persistent-store type="cluster">  
  81.         <init path="session"/>  
  82.       persistent-store>  
  83.     resin:if>  
  84.       
  85.         <ssl-session-cookie>SSL_JSESSIONIDssl-session-cookie>  
  86.       
  87.       
  88.     <resin:if test="${isResinProfessional}">  
  89.       <cache path="cache" memory-size="64M">  
  90.           
  91.         <rewrite-vary-as-private/>  
  92.       cache>  
  93.     resin:if>  
  94.       
  95.     <resin:if test="${isResinProfessional}">  
  96.       <ping>  
  97.           
  98.       ping>  
  99.     resin:if>  
  100.       
  101.     <resin:import path="${resin.home}/conf/app-default.xml"/>  
  102.       
  103.     <web-app-default>  
  104.         
  105.       <class-loader>  
  106.         <tree-loader path="${server.root}/ext-webapp"/>  
  107.       class-loader>  
  108.         
  109.       <cache-mapping url-pattern="/" expires="5s"/>  
  110.       <cache-mapping url-pattern="*.gif" expires="60s"/>  
  111.       <cache-mapping url-pattern="*.jpg" expires="60s"/>  
  112.       <cache-mapping url-pattern="*.png" expires="60s"/>  
  113.         
  114.       <allow-servlet-el/>  
  115.         
  116.       <session-config>  
  117.         <enable-url-rewriting>falseenable-url-rewriting>  
  118.       session-config>  
  119.         
  120.           <cookie-http-only/>  
  121.             
  122.         
  123.         <jsp>  
  124.           <validate-taglib-schema>truevalidate-taglib-schema>  
  125.           <fast-jstl>truefast-jstl>  
  126.           <fast-jsf>truefast-jsf>  
  127.         jsp>  
  128.     web-app-default>  
  129.       
  130.         The JDBC name is java:comp/env/jdbc/test  
  131.          <database>  
  132.            <jndi-name>jdbc/mysqljndi-name>  
  133.            <driver type="org.gjt.mm.mysql.Driver">  
  134.              <url>jdbc:mysql://localhost:3306/testurl>  
  135.              <user>user>  
  136.              <password>password>  
  137.             driver>  
  138.             <prepared-statement-cache-size>8prepared-statement-cache-size>  
  139.             <max-connections>20max-connections>  
  140.             <max-idle-time>30smax-idle-time>  
  141.           database>  
  142.             
  143.       
  144.     <host-default>  
  145.         
  146.       <access-log path="logs/access.log" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' rollover-period="1W"/>  
  147.         
  148.       <web-app-deploy path="webapps"/>  
  149.         
  150.       <ear-deploy path="deploy">  
  151.         <ear-default>  
  152.           <ejb-server>  
  153.             <config-directory>WEB-INFconfig-directory>  
  154.             <data-source>jdbc/testdata-source>  
  155.           ejb-server>  
  156.         ear-default>  
  157.       ear-deploy>  
  158.         
  159.       <resource-deploy path="deploy"/>  
  160.     host-default>  
  161.       
  162.     <host-deploy path="hosts">  
  163.       <host-default>  
  164.         <resin:import path="host.xml" optional="true"/>  
  165.       host-default>  
  166.     host-deploy>  
  167.       
  168.     <host id="" root-directory=".">  
  169.         
  170.       <web-app id="/" root-directory="webapps/ROOT"/>  
  171.       <web-app id="/resin-admin" root-directory="${resin.home}/php/admin">  
  172.           
  173.         <prologue>  
  174.           <resin:set var="resin_admin_user" value=""/>  
  175.           <resin:set var="resin_admin_password" value=""/>  
  176.           <resin:set var="resin_admin_external" value="false"/>  
  177.         prologue>  
  178.       web-app>  
  179.     host>  
  180.   cluster>  
  181.     
  182.   <resin:if test="${resin.isProfessional()}">  
  183.     <cluster id="web-tier">  
  184.       <server-default>  
  185.           
  186.         <http address="*" port="9080"/>  
  187.       server-default>  
  188.       <server id="web-a" address="127.0.0.1" port="6700"/>  
  189.       <cache path="cache" memory-size="64M"/>  
  190.       <host id="">  
  191.         <web-app id="/">  
  192.            <rewrite-dispatch>  
  193.              <load-balance regexp="" cluster="app-tier"/>  
  194.            rewrite-dispatch>  
  195.         web-app>  
  196.       host>  
  197.     cluster>  
  198.   resin:if>  
  199. resin>  

你可能感兴趣的:(配置管理,JVM,Web,应用服务器,Cache)