Sample resin.conf

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(renamed tag to directive)
 
Line 1: Line 1:
[[Category:Configuration]]
+
{{Cleanup}} [[Category:Configuration]]
  
 
==== resin.conf ====
 
==== resin.conf ====

Latest revision as of 13:21, 1 December 2011

40px-Edit-clear.png This article requires cleanup and may refer to a legacy version of Resin.

Please visit http://www.caucho.com/documentation/ for the most up-to-date documentation.

[edit] 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>

[edit] Directives used

Personal tools