Advertisement
Guest User

Untitled

a guest
Sep 12th, 2012
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!--
  3. - Resin 4.0 configuration file.
  4. -->
  5. <resin xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin">
  6. <!-- property-based Resin configuration -->
  7. <resin:properties path="${__DIR__}/resin.properties" optional="true"/>
  8. <resin:properties path="cloud:/resin.properties" optional="true" recover="true"/>
  9. <resin:if test="${properties_import_url}">
  10. <resin:properties path="${properties_import_url}" optional="true" recover="true"/>
  11. </resin:if>
  12. <!-- Logging configuration for the JDK logging API -->
  13. <log-handler name="" level="all" path="stdout:" timestamp="[%y-%m-%d %H:%M:%S.%s]" format=" {${thread}} ${log.message}"/>
  14. <!--
  15. - Alternative pseudo-TTCC log format
  16. -
  17. - <log-handler name="" level="all" path="stdout:"
  18. - timestamp="%y-%m-%d %H:%M:%S.%s"
  19. - format=" [${thread}] ${log.level} ${log.shortName} - ${log.message}"/>
  20. -->
  21. <!--
  22. - level='info' for production
  23. - 'fine' or 'finer' for development and troubleshooting
  24. -->
  25. <logger name="" level="${log_level?:'info'}"/>
  26. <logger name="com.caucho.java" level="config"/>
  27. <logger name="com.caucho.loader" level="config"/>
  28. <!--
  29. - Default configuration applied to all clusters, including
  30. - HTTP, HTTPS, and /resin-admin configuration.
  31. -->
  32. <resin:import path="${__DIR__}/cluster-default.xml"/>
  33. <!--
  34. - health configuration
  35. -->
  36. <resin:import path="${__DIR__}/health.xml"/>
  37. <!--
  38. - Remote management requires at least one enabled admin user.
  39. -->
  40. <resin:AdminAuthenticator>
  41. <user name="${admin_user}" password="${admin_password}"/>
  42. <resin:import path="${__DIR__}/admin-users.xml" optional="true"/>
  43. <resin:import path="cloud:/admin-users.xml" optional="true" recover="true"/>
  44. </resin:AdminAuthenticator>
  45. <!--
  46. - For clustered systems, create a password in as cluster_system_key
  47. -->
  48. <cluster-system-key>${cluster_system_key}</cluster-system-key>
  49. <!--
  50. - For production sites, change dependency-check-interval to something
  51. - like 600s, so it only checks for updates every 10 minutes.
  52. -->
  53. <dependency-check-interval>${dependency_check_interval?:'2s'}</dependency-check-interval>
  54. <!-- For resin.properties dynamic cluster joining -->
  55. <home-cluster>${home_cluster}</home-cluster>
  56. <!-- <home-server>${home_server}</home-server> -->
  57. <!--
  58. - Configures the main application cluster. Load-balancing configurations
  59. - will also have a web cluster.
  60. -->
  61. <cluster id="app">
  62. <!-- define the servers in the cluster -->
  63. <server-multi id-prefix="app-" address-list="${app_servers}" port="6800"/>
  64. <host-default>
  65. <!-- creates the webapps directory for .war expansion -->
  66. <web-app-deploy path="webapps" expand-preserve-fileset="WEB-INF/work/**" multiversion-routing="${webapp_multiversion_routing}"/>
  67. </host-default>
  68. <server-default>
  69. <http port="80"/>
  70. </server-default>
  71. <!-- auto virtual host deployment in hosts/foo.example.com/webapps -->
  72. <host-deploy path="hosts"/>
  73. <!-- the default host, matching any host name -->
  74. <host id="" root-directory=".">
  75. <!--
  76. - webapps can be overridden/extended in the resin.xml
  77. -->
  78. <web-app id="/" root-directory="webapps/ROOT"/>
  79. <resin:if test="${resin_doc}">
  80. <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
  81. </resin:if>
  82. </host>
  83. <host host-name="www.2.com">
  84. <host-alias>2.com</host-alias>
  85. <root-directory>c:/public_html</root-directory>
  86. <web-app id="/" document-directory="."/>
  87. <access-log path="c:/public_html/com-bandwidth.log"/>
  88. </host>
  89.  
  90. </resin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement