Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <!--
- - Resin 4.0 configuration file.
- -->
- <resin xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin">
- <!-- property-based Resin configuration -->
- <resin:properties path="${__DIR__}/resin.properties" optional="true"/>
- <resin:properties path="cloud:/resin.properties" optional="true" recover="true"/>
- <resin:if test="${properties_import_url}">
- <resin:properties path="${properties_import_url}" optional="true" recover="true"/>
- </resin:if>
- <!-- Logging configuration for the JDK logging API -->
- <log-handler name="" level="all" path="stdout:" timestamp="[%y-%m-%d %H:%M:%S.%s]" format=" {${thread}} ${log.message}"/>
- <!--
- - Alternative pseudo-TTCC log format
- -
- - <log-handler name="" level="all" path="stdout:"
- - timestamp="%y-%m-%d %H:%M:%S.%s"
- - format=" [${thread}] ${log.level} ${log.shortName} - ${log.message}"/>
- -->
- <!--
- - level='info' for production
- - 'fine' or 'finer' for development and troubleshooting
- -->
- <logger name="" level="${log_level?:'info'}"/>
- <logger name="com.caucho.java" level="config"/>
- <logger name="com.caucho.loader" level="config"/>
- <!--
- - Default configuration applied to all clusters, including
- - HTTP, HTTPS, and /resin-admin configuration.
- -->
- <resin:import path="${__DIR__}/cluster-default.xml"/>
- <!--
- - health configuration
- -->
- <resin:import path="${__DIR__}/health.xml"/>
- <!--
- - Remote management requires at least one enabled admin user.
- -->
- <resin:AdminAuthenticator>
- <user name="${admin_user}" password="${admin_password}"/>
- <resin:import path="${__DIR__}/admin-users.xml" optional="true"/>
- <resin:import path="cloud:/admin-users.xml" optional="true" recover="true"/>
- </resin:AdminAuthenticator>
- <!--
- - For clustered systems, create a password in as cluster_system_key
- -->
- <cluster-system-key>${cluster_system_key}</cluster-system-key>
- <!--
- - For production sites, change dependency-check-interval to something
- - like 600s, so it only checks for updates every 10 minutes.
- -->
- <dependency-check-interval>${dependency_check_interval?:'2s'}</dependency-check-interval>
- <!-- For resin.properties dynamic cluster joining -->
- <home-cluster>${home_cluster}</home-cluster>
- <!-- <home-server>${home_server}</home-server> -->
- <!--
- - Configures the main application cluster. Load-balancing configurations
- - will also have a web cluster.
- -->
- <cluster id="app">
- <!-- define the servers in the cluster -->
- <server-multi id-prefix="app-" address-list="${app_servers}" port="6800"/>
- <host-default>
- <!-- creates the webapps directory for .war expansion -->
- <web-app-deploy path="webapps" expand-preserve-fileset="WEB-INF/work/**" multiversion-routing="${webapp_multiversion_routing}"/>
- </host-default>
- <server-default>
- <http port="80"/>
- </server-default>
- <!-- auto virtual host deployment in hosts/foo.example.com/webapps -->
- <host-deploy path="hosts"/>
- <!-- the default host, matching any host name -->
- <host id="" root-directory=".">
- <!--
- - webapps can be overridden/extended in the resin.xml
- -->
- <web-app id="/" root-directory="webapps/ROOT"/>
- <resin:if test="${resin_doc}">
- <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
- </resin:if>
- </host>
- <host host-name="www.2.com">
- <host-alias>2.com</host-alias>
- <root-directory>c:/public_html</root-directory>
- <web-app id="/" document-directory="."/>
- <access-log path="c:/public_html/com-bandwidth.log"/>
- </host>
- </resin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement