apache - command for enabling/disabling app context in mod cluster? -


can provide me command enable /disable context in mod cluster-1.0.10?

i have

curl http://mydomain/mod_cluster-manager?cmd=stop-app&range=context&jvmroute=node1&     alias=default-host&context=/myapp 

but unable understand localhost(app or web), alias(app servers running on proxy) since newbie environment. great if 1 can explain me or provide me new command.

thanks!

noooo! please, don't use mod_cluster 1.0.10 unless absolutely have to. if case, make sure on latest version of maintenance branch: mod_cluster_1_0_10_ga_cp

the command asking this:

http://mydomain/mod_cluster-manager?nonce=your_nonce&cmd=disable-app&range=context&jvmroute=my-worker-server-1&alias=alias&context=/myapp 

explanation:

  • nonce, yes, it's on wiki in context. must included if checknonce on.
  • disable-app command disables 1 of resources:
    • lbgroup load balancing group
    • node (worker)
    • context (a particular app on particular node)
  • range=context picks last of aforementioned 3 choices.
  • jvmroute marks particular node
  • context marks particular context on selected node
  • alias if there more aliases-virtual servers on node, select right one. leave e.g. alias if have 1 server per node...doesn't matter.

hth karm


Comments