Advertisement
Sk8erPeter

workers.properties (XAMPP+Tomcat Add-On) tomcat\conf\jk

Aug 15th, 2011
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15.  
  16. # workers.properties -
  17. #
  18. # This file provides jk derived plugins with the needed information to
  19. # connect to the different tomcat workers. Note that the distributed
  20. # version of this file requires modification before it is usable by a
  21. # plugin.
  22. #
  23. # As a general note, the characters $( and ) are used internally to define
  24. # macros. Do not use them in your own configuration!!!
  25. #
  26. # Whenever you see a set of lines such as:
  27. # x=value
  28. # y=$(x)\something
  29. #
  30. # the final value for y will be value\something
  31. #
  32. # Normaly all you will need to do is un-comment and modify the first three
  33. # properties, i.e. workers.tomcat_home, workers.java_home and ps.
  34. # Most of the configuration is derived from these.
  35. #
  36. # When you are done updating workers.tomcat_home, workers.java_home and ps
  37. # you should have 3 workers configured:
  38. #
  39. # - An ajp12 worker that connects to localhost:8007
  40. # - An ajp13 worker that connects to localhost:8009
  41. # - A jni inprocess worker.
  42. # - A load balancer worker
  43. #
  44. # However by default the plugins will only use the ajp12 worker. To have
  45. # the plugins use other workers you should modify the worker.list property.
  46. #
  47. #
  48.  
  49. # OPTIONS ( very important for jni mode )
  50.  
  51. #
  52. # workers.tomcat_home should point to the location where you
  53. # installed tomcat. This is where you have your conf, webapps and lib
  54. # directories.
  55. #
  56. workers.tomcat_home="\xampp\tomcat"
  57.  
  58. #
  59. # workers.java_home should point to your Java installation. Normally
  60. # you should have a bin and lib directories beneath it.
  61. #
  62. workers.java_home="\xampp\tomcat\jre"
  63.  
  64. #
  65. # You should configure your environment slash... ps=\ on NT and / on UNIX
  66. # and maybe something different elsewhere.
  67. #
  68. ps=\
  69.  
  70. #
  71. #------ ADVANCED MODE ------------------------------------------------
  72. #---------------------------------------------------------------------
  73. #
  74.  
  75. #
  76. #------ DEFAULT worker list ------------------------------------------
  77. #---------------------------------------------------------------------
  78. #
  79. #
  80. # The workers that your plugins should create and work with
  81. #
  82. # Add 'ajp12' if you want ajp12
  83. # Add 'inprocess' if you want JNI connector
  84. worker.list=ajp13
  85. # , ajp12
  86. # , inprocess
  87.  
  88.  
  89. #
  90. #------ DEFAULT ajp12 WORKER DEFINITION ------------------------------
  91. #---------------------------------------------------------------------
  92. #
  93.  
  94. #
  95. # Defining a worker named ajp12 and of type ajp12
  96. # Note that the name and the type do not have to match.
  97. #
  98. worker.ajp12.port=8007
  99. worker.ajp12.host=localhost
  100. worker.ajp12.type=ajp12
  101. #
  102. # Specifies the load balance factor when used with
  103. # a load balancing worker.
  104. # Note:
  105. # ----> lbfactor must be > 0
  106. # ----> Low lbfactor means less work done by the worker.
  107. worker.ajp12.lbfactor=1
  108.  
  109. #
  110. #------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
  111. #---------------------------------------------------------------------
  112. #
  113.  
  114. #
  115. # Defining a worker named ajp13 and of type ajp13
  116. # Note that the name and the type do not have to match.
  117. #
  118. worker.ajp13.port=8009
  119. worker.ajp13.host=localhost
  120. worker.ajp13.type=ajp13
  121. #
  122. # Specifies the load balance factor when used with
  123. # a load balancing worker.
  124. # Note:
  125. # ----> lbfactor must be > 0
  126. # ----> Low lbfactor means less work done by the worker.
  127. worker.ajp13.lbfactor=1
  128.  
  129. #
  130. # Specify the size of the open connection pool.
  131. #worker.ajp13.connection_pool_size
  132.  
  133. #
  134. #------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
  135. #---------------------------------------------------------------------
  136. #
  137.  
  138. #
  139. # The loadbalancer (type lb) workers perform wighted round-robin
  140. # load balancing with sticky sessions.
  141. # Note:
  142. # ----> If a worker dies, the load balancer will check its state
  143. # once in a while. Until then all work is redirected to peer
  144. # workers.
  145. worker.loadbalancer.type=lb
  146. worker.loadbalancer.balance_workers=ajp12, ajp13
  147.  
  148.  
  149. #
  150. #------ DEFAULT JNI WORKER DEFINITION---------------------------------
  151. #---------------------------------------------------------------------
  152. #
  153.  
  154. #
  155. # Defining a worker named inprocess and of type jni
  156. # Note that the name and the type do not have to match.
  157. #
  158. worker.inprocess.type=jni
  159.  
  160. #
  161. #------ CLASSPATH DEFINITION -----------------------------------------
  162. #---------------------------------------------------------------------
  163. #
  164.  
  165. #
  166. # Additional class path components.
  167. #
  168. worker.inprocess.class_path="$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar"
  169.  
  170. #
  171. # Setting the command line for tomcat.
  172. # Note: The cmd_line string may not contain spaces.
  173. #
  174. worker.inprocess.cmd_line=start
  175.  
  176. # Not needed, but can be customized.
  177. #worker.inprocess.cmd_line=-config
  178. #worker.inprocess.cmd_line="$(workers.tomcat_home)$(ps)conf$(ps)server.xml"
  179. #worker.inprocess.cmd_line=-home
  180. #worker.inprocess.cmd_line="$(workers.tomcat_home)"
  181.  
  182. #
  183. # The JVM that we are about to use
  184. #
  185. # This is for Java2
  186. #
  187. # Windows
  188. worker.inprocess.jvm_lib="$(workers.java_home)$(ps)bin$(ps)server$(ps)jvm.dll"
  189. # IBM JDK1.3
  190. #worker.inprocess.jvm_lib="$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so"
  191. # Unix - Sun VM or blackdown
  192. #worker.inprocess.jvm_lib="$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)classic$(ps)libjvm.so"
  193.  
  194. #
  195. # And this is for jdk1.1.X
  196. #
  197. #worker.inprocess.jvm_lib="$(workers.java_home)$(ps)bin$(ps)javai.dll"
  198.  
  199.  
  200. #
  201. # Setting the place for the stdout and stderr of tomcat
  202. #
  203. worker.inprocess.stdout="$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout"
  204. worker.inprocess.stderr="$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr"
  205.  
  206. #
  207. # Setting the tomcat.home Java property
  208. #
  209. #worker.inprocess.sysprops=tomcat.home="$(workers.tomcat_home)"
  210.  
  211. #
  212. # Java system properties
  213. #
  214. # worker.inprocess.sysprops=java.compiler=NONE
  215. # worker.inprocess.sysprops=myprop=mypropvalue
  216.  
  217. #
  218. # Additional path components.
  219. #
  220. # worker.inprocess.ld_path=d:$(ps)SQLLIB$(ps)bin
  221. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement