<!--
- Temporary minimal resin.conf during 3.0 refactoring.
-->
<resin xmlns="http://caucho.com/ns/resin">
<!--
- Logging configuration for the JDK logging API.
-->
<log id='' level='info' path='stderr:' timestamp='[%H:%M:%S.%s] '/> <!--
- For production sites, change dependency-check-interval to something
- like 60s, so it only checks for updates every minute.
-->
<dependency-check-interval>2s</dependency-check-interval> <!--
- You can change the compiler to "javac" or jikes.
- The default is "internal" only because it's the most
- likely to be available.
-->
<javac compiler="internal" args=""/> <!--
- Sample database pool configuration
- The JDBC name is java:comp/env/jdbc/test
-->
<database>
<name>jdbc/test</name>
<driver-class>com.caucho.jdbc.mysql.Driver</driver-class>
<driver-url>jdbc:mysql_caucho://localhost:3306/test</driver-url>
<user></user>
<password></password>
<max-connections>20</max-connections>
<max-idle-time>30s</max-idle-time>
</database> <server>
<!-- The http port -->
<http id='' host='*' port='80'/> <!--
- SSL port configuration:
-
- <http port=8443>
- <openssl>
- <certificate-file>keys/gryffindor.crt</certificate-file>
- <certificate-key-file>keys/gryffindor.key</certificate-key-file>
- <password>test123</password>
- </openssl>
- </http>
--> <!--
- The local cluster, used for load balancing and distributed
- backup.
-->
<cluster>
<srun id='' host='127.0.0.1' port='6802'/>
</cluster> <!--
- If starting bin/resin as root on Unix, specify the user name
- and group name for the web server user.
-
- <user-name>resin</user-name>
- <group-name>resin</group-name>
--> <!--
- Default host configuration applied to all virtual hosts.
-->
<host-default>
<class-loader>
<!--
- If true, the classloader order follows the Servlet spec.
- If false, the classloader order follows the JDK spec.
-->
<servlet-hack>false</servlet-hack>
<compiling-loader path='webapps/WEB-INF/classes'/>
<library-loader path='webapps/WEB-INF/lib'/>
</class-loader> <!--
- With another web server, like Apache, this can be commented out
- because the web server will log this information.
-->
<access-log path='logs/access.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period='1W'/> <!-- creates the webapps directory for .war expansion -->
<web-app-deploy path='webapps'/>
</host-default>
<!-- includes the web-app-default for default web-app behavior -->
<resin:include href="app-default.xml"/> <!-- configures the default host, matching any host name -->
<host id=''>
<document-directory>../nccm</document-directory>
<!-- configures the root web-app -->
<web-app id='/'>
<!-- adds xsl to the search path -->
<class-loader>
<simple-loader path="$host-root/xsl"/>
</class-loader>
<servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>
<!--2004-10-6 Start@Author:falchional-->
<security-constraint>
<web-resource-collection>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<!--auth-constraint role-name='user'-->
</security-constraint>
<!--2004-10-6 End@Author:falchional-->
<!--2004-10-22 Start@Author:falchional Config Session Because session lost fuction that is null values -->
<session-config>
<session-max>4096</session-max>
<session-timeout>30</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
</session-config>
<!--2004-10-22 End@Author:falchional End Config Session -->
</web-app>
</host>
</server>
</resin>
- Temporary minimal resin.conf during 3.0 refactoring.
-->
<resin xmlns="http://caucho.com/ns/resin">
<!--
- Logging configuration for the JDK logging API.
-->
<log id='' level='info' path='stderr:' timestamp='[%H:%M:%S.%s] '/> <!--
- For production sites, change dependency-check-interval to something
- like 60s, so it only checks for updates every minute.
-->
<dependency-check-interval>2s</dependency-check-interval> <!--
- You can change the compiler to "javac" or jikes.
- The default is "internal" only because it's the most
- likely to be available.
-->
<javac compiler="internal" args=""/> <!--
- Sample database pool configuration
- The JDBC name is java:comp/env/jdbc/test
-->
<database>
<name>jdbc/test</name>
<driver-class>com.caucho.jdbc.mysql.Driver</driver-class>
<driver-url>jdbc:mysql_caucho://localhost:3306/test</driver-url>
<user></user>
<password></password>
<max-connections>20</max-connections>
<max-idle-time>30s</max-idle-time>
</database> <server>
<!-- The http port -->
<http id='' host='*' port='80'/> <!--
- SSL port configuration:
-
- <http port=8443>
- <openssl>
- <certificate-file>keys/gryffindor.crt</certificate-file>
- <certificate-key-file>keys/gryffindor.key</certificate-key-file>
- <password>test123</password>
- </openssl>
- </http>
--> <!--
- The local cluster, used for load balancing and distributed
- backup.
-->
<cluster>
<srun id='' host='127.0.0.1' port='6802'/>
</cluster> <!--
- If starting bin/resin as root on Unix, specify the user name
- and group name for the web server user.
-
- <user-name>resin</user-name>
- <group-name>resin</group-name>
--> <!--
- Default host configuration applied to all virtual hosts.
-->
<host-default>
<class-loader>
<!--
- If true, the classloader order follows the Servlet spec.
- If false, the classloader order follows the JDK spec.
-->
<servlet-hack>false</servlet-hack>
<compiling-loader path='webapps/WEB-INF/classes'/>
<library-loader path='webapps/WEB-INF/lib'/>
</class-loader> <!--
- With another web server, like Apache, this can be commented out
- because the web server will log this information.
-->
<access-log path='logs/access.log'
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period='1W'/> <!-- creates the webapps directory for .war expansion -->
<web-app-deploy path='webapps'/>
</host-default>
<!-- includes the web-app-default for default web-app behavior -->
<resin:include href="app-default.xml"/> <!-- configures the default host, matching any host name -->
<host id=''>
<document-directory>../nccm</document-directory>
<!-- configures the root web-app -->
<web-app id='/'>
<!-- adds xsl to the search path -->
<class-loader>
<simple-loader path="$host-root/xsl"/>
</class-loader>
<servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>
<!--2004-10-6 Start@Author:falchional-->
<security-constraint>
<web-resource-collection>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<!--auth-constraint role-name='user'-->
</security-constraint>
<!--2004-10-6 End@Author:falchional-->
<!--2004-10-22 Start@Author:falchional Config Session Because session lost fuction that is null values -->
<session-config>
<session-max>4096</session-max>
<session-timeout>30</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
</session-config>
<!--2004-10-22 End@Author:falchional End Config Session -->
</web-app>
</host>
</server>
</resin>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货