213 lines
6.5 KiB
Plaintext
Executable File
213 lines
6.5 KiB
Plaintext
Executable File
<!--
|
|
- The Resin configuration file.
|
|
-
|
|
- This example file is more complicated than is needs to be because
|
|
- it makes several configurations explicit that can be simplified and
|
|
- because it needs to configure the examples.
|
|
-
|
|
- Look in conf/samples for more realistic sample configurations.
|
|
- conf/samples/simple.conf - a simple, basic configuration
|
|
- conf/samples/deploy.conf - a simple configuration for deployment
|
|
-
|
|
- The configuration is based on a purely element-based XML. To make
|
|
- it easier to read, attributes can be used as syntactic sugar.
|
|
-
|
|
- The following are equivalent:
|
|
- <foo><bar>13</bar></foo> - canonical representation, but verbose
|
|
- <foo bar=13/> - typical configuration
|
|
- <foo><bar id=13/></foo> - sometimes useful
|
|
-->
|
|
<caucho.com>
|
|
|
|
<!--
|
|
- Resin logging. Debugging is also available with different values
|
|
- for id.
|
|
-->
|
|
<log id='::log-dir::' href='stderr:' timestamp='[%Y-%m-%d %H:%M:%S.%s]'/>
|
|
|
|
<!-- Security providers. Adding JSSE looks like:
|
|
- <security-provider id='com.sun.net.ssl.internal.ssl.Provider'/>
|
|
-->
|
|
|
|
<!--
|
|
- You can change the compiler to "javac" or jikes.
|
|
- The default is "internal" only because it's the most
|
|
- likely to be available.
|
|
-->
|
|
<java compiler="internal" compiler-args=""/>
|
|
|
|
<!--
|
|
- Use precompiled JSP classes if available.
|
|
- 'static-encoding' - optimization if you stick to one character set
|
|
-->
|
|
<jsp precompile='true' static-encoding='true' recompile-on-error='false'/>
|
|
|
|
<http-server>
|
|
<!--
|
|
- The root file directory of the server. Apache users will change
|
|
- this to /usr/local/apache/htdocs and IIS users will change it
|
|
- to d:\inetpub\wwwroot
|
|
-->
|
|
<app-dir>::webapp-dir::</app-dir>
|
|
|
|
<!-- the http port -->
|
|
<http port='::port::'/>
|
|
|
|
|
|
<!--
|
|
- Interval in seconds between checking for servlet updates. For
|
|
- development, this can be set to 0 or to a small number to pick up new
|
|
- servlet versions quickly. For deployment, class-update-interval can be
|
|
- large to avoid the overhead of checking for updates.
|
|
-
|
|
- We disable checking by setting the interval to 10 years.
|
|
-->
|
|
<class-update-interval>315360000</class-update-interval>
|
|
|
|
<!--
|
|
- If true, the classloader order follows the Servlet spec.
|
|
- If false, the classloader order follows the JDK spec.
|
|
-->
|
|
<servlet-classloader-hack>false</servlet-classloader-hack>
|
|
|
|
<!--
|
|
- Select an error page to display when the connection fails.
|
|
-
|
|
- <error-page exception='connection' location='/my-error-page.html'/>
|
|
-->
|
|
|
|
<!-- To disable /caucho-status, set this to false -->
|
|
<caucho-status>true</caucho-status>
|
|
|
|
<!-- maximum number of threads -->
|
|
<thread-max>150</thread-max>
|
|
|
|
<!--
|
|
- How many threads to wait for keepalives. Should be at least the
|
|
- number of Apache processes to get good performance.
|
|
-->
|
|
<thread-keepalive id='100'/>
|
|
|
|
<!--
|
|
- How long an idle keepalive connection should listen to the socket.
|
|
-->
|
|
<request-timeout id='30s'/>
|
|
|
|
<!--
|
|
- How many sockets to hold in the buffer before failing requests.
|
|
-->
|
|
<accept-buffer-size id='256'/>
|
|
<!--
|
|
- Maximum number of request threads which will wait for a socket.
|
|
-->
|
|
<thread-min id='5'/>
|
|
|
|
<!--
|
|
- Ping to test if the web server is still up. You can uncomment this
|
|
- and point it to pages on the webserver that exercise your main
|
|
- logic (like database access). If the GET fails, it will restart
|
|
- the server. This will catch deadlocks, but not JDK freezes.
|
|
-
|
|
- <ping sleep-time='1m' retry-count='3' retry-time='1s'>
|
|
- <url>http://localhost:8080/ping/ping.jsp</url>
|
|
- </ping>
|
|
-->
|
|
|
|
<!--
|
|
- Enables/disables exceptions when the browser closes a connection.
|
|
-->
|
|
<ignore-client-disconnect>true</ignore-client-disconnect>
|
|
|
|
<!--
|
|
- Enable internal caching.
|
|
- 'dir' is the directory containing the cache
|
|
- 'size' is the memory size in kb
|
|
- 'entries' is the total number of entries
|
|
-->
|
|
<!--
|
|
<cache dir='cache' size='1024' entries='8192'/>
|
|
-->
|
|
|
|
<!--
|
|
- Expires time for a cacheable file. Production sites will
|
|
- normally change this to '15m'
|
|
-->
|
|
<cache-mapping url-pattern='/' expires='2s'/>
|
|
|
|
|
|
<!--
|
|
- set the pages to be used as welcome (index) files
|
|
-->
|
|
<welcome-file-list>index.xtp, index.jsp, index.html</welcome-file-list>
|
|
|
|
<!-- default host if no other host matches -->
|
|
<host id=''>
|
|
<!--
|
|
- 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-dir::/access.log'
|
|
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'/>
|
|
-->
|
|
|
|
<error-log id='::log-dir::/error.log'/>
|
|
|
|
<!--
|
|
- Specifies an automatically-expanding .war dir. Any foo.war
|
|
- file will be expanded to a /foo application.
|
|
-->
|
|
|
|
<web-app id='/'>
|
|
<!--
|
|
- The classpath directive may be repeated. Source is optional
|
|
- Servlets and beans generally belong in WEB-INF/classes
|
|
-->
|
|
<classpath id='WEB-INF/classes'
|
|
source='WEB-INF/classes'
|
|
compile='false'/>
|
|
|
|
<session-config>
|
|
<session-max>4096</session-max>
|
|
<session-timeout>30</session-timeout>
|
|
<enable-cookies>true</enable-cookies>
|
|
<enable-url-rewriting>true</enable-url-rewriting>
|
|
|
|
<!--
|
|
- Store sessions in the filesystem, so they can persist across
|
|
- servlet and class changes.
|
|
-
|
|
- Uncomment this during development.
|
|
-->
|
|
<!--
|
|
- <file-store>WEB-INF/sessions</file-store>
|
|
-->
|
|
</session-config>
|
|
|
|
<!-- enable multipart-mime/form processing -->
|
|
<!--
|
|
- <multipart-form upload-max='-1'/>
|
|
-->
|
|
|
|
<!-- /~user maps to user directories -->
|
|
<path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>
|
|
</web-app>
|
|
|
|
<!--
|
|
- The following entries configuration the examples. You may safely
|
|
- delete anything from here down.
|
|
-->
|
|
|
|
</host>
|
|
|
|
<!--
|
|
- Known broken browsers. These should no longer be necessary, but
|
|
- you can uncomment them if they become a problem.
|
|
-
|
|
- <browser-mapping regexp="MSIE 4\.0b2" force10/>
|
|
- <browser-mapping regexp="RealPlayer 4\.0" force10/>
|
|
- <browser-mapping regexp="Java/1\\.0" force10/>
|
|
- <browser-mapping regexp="JDK/1\\.0" force10/>
|
|
-->
|
|
</http-server>
|
|
</caucho.com>
|