You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### when wildchar * is used after a path, all jars and sub-directories will appended to
24
+
### the jvm classpath. Note that on windows use `;` as separator instead of `:`
25
+
jvm_classpath "mylibs1/*:mylibs2/*:/myclasses";
26
26
27
-
###or we can put jars in some directories, e.g. jars-dir1, jars-dir2
28
-
###so that all jars/sub directories from these directories will be appended the jvm classpath
29
-
jvm_options "-Djava.ext.dirs=jars-dir1:jars-dir2"
27
+
28
+
###define jvm options
29
+
###jvm_options can be repeated once per option.
30
30
31
31
###uncomment next two line to define jvm heap memory
32
32
#jvm_options "-Xms1024m";
@@ -150,7 +150,7 @@ Please Keep these in your mind:
150
150
151
151
* By default if the initialization failed the nginx won't start successfully and the worker will exit after reporting an error message in error log file but the master keep running and take the port.
152
152
* Because the maybe more than one nginx worker processes, so this code will run everytime per worker starting.
153
-
* If you use [SharedHashMap/Chronicle-Map][] to share data
153
+
* If you use [Shared Map][], [Chronicle-Map][] to share data
154
154
among nginx worker processes, Java file lock can be used to let only one nginx worker process do the initialization.
155
155
* If you [enabled coroutine support][], nginx maybe will start successfully even if your initialization failed after some socket operations. If you case it, you can
156
156
use `nginx.clojure.core/without-coroutine` to wrap your handler, e.g.
@@ -454,7 +454,7 @@ which explains perfectly the variable scope.
454
454
rewrite_handler_type 'clojure';
455
455
rewrite_handler_code ' ....
456
456
';
457
-
proxy_pass $myhost
457
+
proxy_pass $myhost;
458
458
}
459
459
460
460
```
@@ -467,7 +467,7 @@ This example is right and there we declare variable $myhost at the outside of `l
467
467
rewrite_handler_type 'clojure';
468
468
rewrite_handler_code ' ....
469
469
';
470
-
proxy_pass $myhost
470
+
proxy_pass $myhost;
471
471
}
472
472
473
473
```
@@ -521,7 +521,7 @@ We can also use this feature to complete a simple dynamic balancer , e.g.
521
521
(set-ngx-var! req "myhost" myhost)
522
522
phase-done))
523
523
';
524
-
proxy_pass $myhost
524
+
proxy_pass $myhost;
525
525
}
526
526
527
527
```
@@ -557,7 +557,7 @@ Then we set the java rewrtite handler in nginx.conf
0 commit comments