Sample resin.conf

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
(renamed tag to directive)
Line 46: Line 46:
 
  </resin>
 
  </resin>
  
= Tags used =
+
= Directives used =
  
 
* <[[resin]]>
 
* <[[resin]]>

Revision as of 20:23, 21 February 2006


resin.conf

<resin xmlns="http://caucho.com/ns/resin"
       xmlns:core="http://caucho.com/ns/resin/core">
  <log name="" level="info" path="stdout:" timestamp="[%Y-%m-%d %H:%M:%S.%s] "/>

  <server>
    <class-loader>
      <tree-loader path="${resin.home}/lib"/>
      <tree-loader path="${server.rootDir}/lib"/>
    </class-loader>

    <web-app-default>
      <tree-loader path="${server.rootDir}/ext-webapp"/>
    </web-app-default>

    <dependency-check-interval>1h</dependency-check-interval>

    <http server-id="" host="*" port="8080">

    <resin:import path="${resin.home}/conf/app-default.xml"/>

    <resin:if test="${resin.isProfessional()}">
      <cache memory-size="32m"/>
    </resin:if>

    <host-default>
      <access-log archive-path="logs/%Y/access-%m%d.log"
                  format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
                  rollover-period="1W"/>
    </host-default>

    <database jndi-name="jdbc/test">
      <driver type="org.postgresql.Driver">
        <url>jdbc:postgresql://localhost/test</url>
        <user>potter</user>
      </driver>
    </database>

    <host id="" root-directory=".">
      <web-app-deploy expand-directory="webapps" archive-directory="webapps"/>
    </host>
  </server>
</resin>

Directives used

Personal tools