summaryrefslogtreecommitdiffstats
path: root/sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80')
-rw-r--r--sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80/conf/httpd.conf28
-rw-r--r--sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80/conf/workers.properties18
2 files changed, 46 insertions, 0 deletions
diff --git a/sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80/conf/httpd.conf b/sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80/conf/httpd.conf
new file mode 100644
index 0000000000..37cf284d35
--- /dev/null
+++ b/sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80/conf/httpd.conf
@@ -0,0 +1,28 @@
+# Load mod_jk module
+# Update this path to match your modules location
+LoadModule jk_module modules/mod_jk.so
+
+# Declare the module for <IfModule directive> (remove this line on Apache 2.x)
+# AddModule mod_jk.c
+# Where to find workers.properties
+# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
+JkWorkersFile conf/workers.properties
+
+# Where to put jk shared memory
+# Update this path to match your local state directory or logs directory
+JkShmFile logs/mod_jk.shm
+
+# Where to put jk logs
+# Update this path to match your logs directory location (put mod_jk.log next to access_log)
+JkLogFile logs/mod_jk.log
+
+# Set the jk log level [debug/error/info]
+JkLogLevel info
+
+# Select the timestamp log format
+JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
+
+# Send everything for context /examples to worker named worker1 (ajp13)
+# JkMount /examples/* worker1
+# Send everything for context /* to the router
+JkMount /* router
diff --git a/sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80/conf/workers.properties b/sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80/conf/workers.properties
new file mode 100644
index 0000000000..9228c4fd8e
--- /dev/null
+++ b/sandbox/sebastien/java/sca-node/demos/load-balancing-webapp/src/test/resources/apache-80/conf/workers.properties
@@ -0,0 +1,18 @@
+ # Load balancer looks after the workers
+ worker.list=router
+
+ # The load balacer
+ worker.router.type=lb
+ worker.router.balance_workers=worker1,worker2
+
+ # Set properties for worker1 (ajp13)
+ worker.worker1.type=ajp13
+ worker.worker1.host=localhost
+ worker.worker1.port=8010
+ worker.worker1.lbfactor=1
+
+ # Set properties for worker1 (ajp13)
+ worker.worker2.type=ajp13
+ worker.worker2.host=localhost
+ worker.worker2.port=8011
+ worker.worker2.lbfactor=1