Advertisement
Guest User

Untitled

a guest
Oct 11th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName localhost
  3. ServerAdmin someemail@email.com
  4. DocumentRoot /var/www/html
  5. </VirtualHost>
  6.  
  7. <VirtualHost *:80>
  8. ServerName geonetwork
  9. ServerAdmin someemail@email.com
  10. DocumentRoot /usr/local/tomcat_gn/webapps
  11.  
  12. <Directory "/usr/local/tomcat_gn/webapps">
  13. #Options MultiViews FollowSymLinks
  14. Options All
  15. AllowOverride all
  16. Require all granted
  17. </Directory>
  18.  
  19. #LogLevel info ssl:warn
  20. ErrorLog ${APACHE_LOG_DIR}/error.log
  21. CustomLog ${APACHE_LOG_DIR}/access.log combined
  22. JkMount /geonetwork|/* gn_worker
  23. </VirtualHost>
  24.  
  25. <VirtualHost *:80>
  26. ServerName geoserver
  27. ServerAdmin someemail@email.com
  28. DocumentRoot /usr/local/tomcat_gs/webapps
  29.  
  30. #LogLevel info ssl:warn
  31. ErrorLog ${APACHE_LOG_DIR}/error.log
  32. CustomLog ${APACHE_LOG_DIR}/access.log combined
  33. JkMount /geoserver|/* gs_worker
  34. </VirtualHost>
  35.  
  36.  
  37. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  38.  
  39. #
  40. worker.list=gn_worker,gs_worker
  41.  
  42. #
  43. #------ ajp13_worker WORKER DEFINITION ------------------------------
  44. #---------------------------------------------------------------------
  45. #
  46.  
  47. #
  48. # Defining a worker named ajp13_worker and of type ajp13
  49. # Note that the name and the type do not have to match.
  50. #
  51. worker.gs_worker.port=8009
  52. worker.gs_worker.host=geoserver
  53. worker.gs_worker.type=ajp13
  54.  
  55. worker.gn_worker.port=8009
  56. worker.gn_worker.host=geonetwork
  57. worker.gn_worker.type=ajp13
  58. #
  59. # Specifies the load balance factor when used with
  60. # a load balancing worker.
  61. # Note:
  62. # ----> lbfactor must be > 0
  63. # ----> Low lbfactor means less work done by the worker.
  64. worker.gs.lbfactor=1
  65. worker.gn.lbfactor=1
  66.  
  67. #
  68. # Specify the size of the open connection cache.
  69. #worker.ajp13_worker.cachesize
  70.  
  71. #
  72. #------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
  73. #---------------------------------------------------------------------
  74. #
  75.  
  76. #
  77. # The loadbalancer (type lb) workers perform wighted round-robin
  78. # load balancing with sticky sessions.
  79. # Note:
  80. # ----> If a worker dies, the load balancer will check its state
  81. # once in a while. Until then all work is redirected to peer
  82. # workers.
  83. worker.loadbalancer.type=lb
  84. worker.loadbalancer.balance_workers=gn_worker,gs_worker
  85.  
  86. # Load mod_jk module
  87. LoadModule jk_module modules/tomcat-connector/mod_jk.so
  88.  
  89. # Add the module (activate this lne for Apache 1.3)
  90. # AddModule mod_jk.c
  91. # Where to find workers.properties
  92. JkWorkersFile conf/extra/workers.properties
  93. # Where to put jk shared memory
  94. JkShmFile logs/mod_jk.shm
  95. # Where to put jk logs
  96. JkLogFile logs/mod_jk.log
  97. # Set the jk log level [debug/error/info]
  98. JkLogLevel info
  99.  
  100.  
  101. <VirtualHost *:80>
  102. ServerName localhost
  103. ServerAdmin someemail@email.com
  104. DocumentRoot /var/www/html
  105. </VirtualHost>
  106.  
  107. <VirtualHost *:80>
  108. ServerName geonetwork
  109. ServerAdmin someemail@email.com
  110. DocumentRoot /usr/local/tomcat_gn/webapps
  111.  
  112. <Directory "/usr/local/tomcat_gn/webapps">
  113. #Options MultiViews FollowSymLinks
  114. Options All
  115. AllowOverride all
  116. Require all granted
  117. </Directory>
  118.  
  119. #LogLevel info ssl:warn
  120. ErrorLog ${APACHE_LOG_DIR}/error.log
  121. CustomLog ${APACHE_LOG_DIR}/access.log combined
  122. JkMount /geonetwork|/* gn_worker
  123. </VirtualHost>
  124.  
  125. <VirtualHost *:80>
  126. ServerName geoserver
  127. ServerAdmin someemail@email.com
  128. DocumentRoot /usr/local/tomcat_gs/webapps
  129.  
  130. #LogLevel info ssl:warn
  131. ErrorLog ${APACHE_LOG_DIR}/error.log
  132. CustomLog ${APACHE_LOG_DIR}/access.log combined
  133. JkMount /geoserver|/* gs_worker
  134. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement