<caucho.com>
  <java compiler='internal' work-dir='.'/>

  <smtp.vfs host=localhost port=25/>

  <dbpool.sql id="test"
     driver="org.gjt.mm.mysql.Driver"
     url="jdbc:mysql://localhost:3306/test"
     user=""
     password=""/>

  <!--
     - For production sites, change class-update-interval to something
     - like 60, so it only checks for updates every minute.
    -->
  <http-server port='8080' app-dir='d:\inetpub\wwwroot' class-update-interval='2'>
    <!-- The classpath directive may be repeated.  Source is optional -->
    <classpath id='WEB-INF/classes' source='WEB-INF/classes'/>

    <!-- Enable internal caching -->
    <cache dir='cache' size='1024' entries='1024'/>

    <!--
       - The standalone server should uncomment for access logging.
       - With another web server, like Apache, the web server will
       - log this information.
    <access-log id='log/access.log'
          format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'/>
    -->
    <error-log id='log/error.log'/>

    <servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>

    <servlet-mapping url-pattern='*.xtp'
                     servlet-name='com.caucho.jsp.XtpServlet'/>
    <servlet-mapping url-pattern='*.jsp'
                     servlet-name='com.caucho.jsp.JspServlet'/>

    <!-- /~user maps to user directories -->
    <path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>

    <!--
       - The following entries configuration the examples.  You may safely
       - delete anything from here down.
       -
       - Define applications (ServletContexts) for the examples.
       - Singe applications are entirely separate from one another,
       - including session variables and servlet-mappings, the
       - servlet-mapping declarations need to be repeated.
      -->

    <web-app id='examples/tictactoe'/>

    <web-app id='examples/navigation'/>

    <web-app id='examples/xsl'/>

    <web-app id='examples/templates'>
      <servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
      <servlet-mapping url-pattern='/GuestJsp' servlet-name='GuestJsp'/>
      <servlet-mapping url-pattern='/GuestXtp' servlet-name='GuestXtp'/>
      <servlet-mapping url-pattern='/RSS' servlet-name='jsp.RSS'/>

      <servlet servlet-name='GuestJsp' servlet-class='jsp.GuestJsp'/>
      <servlet servlet-name='GuestXtp' servlet-class='jsp.GuestXtp'/>
    </web-app>

    <web-app id='examples/login'/>
  </http-server>
</caucho.com>

