JetForMe

Untitled

Mar 13th, 2014
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.20 KB | None | 0 0
  1. <resin xmlns="http://caucho.com/ns/resin"
  2.       xmlns:resin="urn:java:com.caucho.resin">
  3.  
  4.   <!--
  5.     - default configuration applied to all clusters
  6.    -->
  7.   <cluster-default>
  8.     <!-- shared webapp jars for non-classloader-aware libraries -->
  9.     <web-app-default>
  10.       <class-loader>
  11.         <library-loader path="${resin.root}/webapp-jars"/>
  12.         <library-loader path="${resin.root}/webapp.d/lib"/>
  13.         <library-loader path="config:/webapp.d/lib"/>
  14.       </class-loader>
  15.     </web-app-default>
  16.  
  17.     <!-- shared jars and drivers for the app-tier -->
  18.     <class-loader>
  19.       <tree-loader path="${resin.root}/${cluster.id}-inf"/>
  20.       <tree-loader path="cloud:/${cluster.id}-inf"/>
  21.     </class-loader>
  22.  
  23.     <!-- enables development error pages -->
  24.     <resin:if test="${dev_mode}">
  25.       <development-mode-error-page/>
  26.     </resin:if>
  27.  
  28.     <!--
  29.       - Enables the proxy cache (available in Resin Professional)
  30.      -->
  31.     <resin:if test="${proxy_cache_enable}">
  32.       <proxy-cache memory-size="${proxy_cache_size}">
  33.        <!-- Vary header rewriting for IE -->
  34.         <rewrite-vary-as-private/>
  35.       </proxy-cache>
  36.     </resin:if>
  37.    
  38.     <!--
  39.       - Admin services
  40.      -->
  41.  
  42.     <resin:if test="${remote_admin_enable}">
  43.       <resin:RemoteAdminService/>
  44.     </resin:if>
  45.    
  46.     <resin:AdminServices/>
  47.  
  48.     <resin:if test="${elastic_cloud_enable}">
  49.       <resin:ElasticCloudService/>
  50.     </resin:if>
  51.  
  52.     <!-- defaults for each server, i.e. JVM -->
  53.     <server-default>
  54.       <jvm-arg-line>${jvm_args}</jvm-arg-line>
  55.       <jvm-mode>${jvm_mode}</jvm-mode>
  56.  
  57.       <!--
  58.         - If starting Resin as root on Unix, specify the user name
  59.         - and group name for the web server user.
  60.       -->
  61.       <user-name>${setuid_user}</user-name>
  62.       <group-name>${setuid_group}</group-name>
  63.  
  64.       <port-default>
  65.         <port-thread-max>${port_thread_max}</port-thread-max>
  66.         <accept-thread-min>${accept_thread_min}</accept-thread-min>
  67.         <accept-thread-max>${accept_thread_max}</accept-thread-max>
  68.         <keepalive-max>${keepalive_max?:-1}</keepalive-max>
  69.  
  70.         <tcp-cork>${tcp_cork}</tcp-cork>
  71.       </port-default>
  72.  
  73.       <sendfile-enable>${sendfile}</sendfile-enable>
  74.  
  75.       <keepalive-select-enable>${keepalive_select_enable}</keepalive-select-enable>
  76.  
  77.       <!-- The http port -->
  78.       <http address="${http_address?:'*'}" port="${http}"/>
  79.  
  80.       <!-- SSL port configuration: -->
  81.       <resin:choose>
  82.       <resin:when test="${openssl_file != null}">
  83.         <http address="${http_address?:'*'}" port="${https}">
  84.           <openssl>
  85.             <certificate-file>${file_lookup(openssl_file,__DIR__)}</certificate-file>
  86.             <certificate-key-file>${file_lookup(openssl_key, __DIR__)}</certificate-key-file>
  87.             <password>
  88.               <resin:Password>${openssl_password}</resin:Password>
  89.             </password>
  90.           </openssl>
  91.         </http>
  92.       </resin:when>
  93.       <resin:when test="${jsse_keystore_file != null}">
  94.         <http address="${http_address?:'*'}" port="${https}">
  95.           <jsse-ssl>
  96.             <key-store-type>${jsse_keystore_type?:'jks'}</key-store-type>
  97.             <key-store-file>${jsse_keystore_file}</key-store-file>
  98.             <password>
  99.               <resin:Password>${jsse_keystore_password}</resin:Password>
  100.             </password>
  101.           </jsse-ssl>
  102.         </http>
  103.       </resin:when>
  104.       <resin:when test="${class_exists('sun.security.x509.CertAndKeyGen')}">
  105.         <http address="${http_address?:'*'}" port="${https}">
  106.           <jsse-ssl self-signed-certificate-name="resin@localhost"/>
  107.         </http>
  108.       </resin:when>
  109.       </resin:choose>
  110.     </server-default>
  111.  
  112.     <!--
  113.       - Default host configuration applied to all virtual hosts.
  114.      -->
  115.     <host-default>
  116.  
  117.       <!--
  118.         - Defaults applied to each web-app.
  119.        -->
  120.       <web-app-default>
  121.         <prologue>
  122.           <allow-servlet-el/>
  123.         </prologue>
  124.      
  125.         <!--
  126.           - Sets max-age for cacheable pages, e.g. static pages.
  127.          -->
  128.         <cache-mapping url-pattern="/" max-age="5s"/>
  129.         <cache-mapping url-pattern="*.gif" max-age="60s"/>
  130.         <cache-mapping url-pattern="*.jpg" max-age="60s"/>
  131.         <cache-mapping url-pattern="*.png" max-age="60s"/>
  132.         <cache-mapping url-pattern="*.css" max-age="60s"/>
  133.         <cache-mapping url-pattern="*.js" max-age="60s"/>
  134.  
  135.         <session-config>
  136.           <use-persistent-store>${session_store}</use-persistent-store>
  137.          
  138.           <enable-url-rewriting>false</enable-url-rewriting>
  139.         </session-config>
  140.       </web-app-default>
  141.     </host-default>
  142.  
  143.     <!--
  144.    <host id="${web_admin_host}" root-directory="${web_admin_host}">
  145.      -->
  146.     <host-default>
  147.      
  148.     </host-default>
  149.  
  150.     <!-- include resources config files in resources/ -->
  151.     <resin:import fileset="${resin.root}/${cluster.id}-inf/**/*.xml"/>
  152.     <resin:import fileset="cloud:/${cluster.id}-inf/**/*.xml"
  153.                  recover="true"/>
  154.  
  155.     <!-- standard servlet behavior, including .jsp, .php, and WEB-INF -->
  156.     <resin:import path="classpath:META-INF/caucho/app-default.xml"/>
  157.   </cluster-default>
  158. </resin>
Advertisement
Add Comment
Please, Sign In to add comment