~ubuntu-branches/ubuntu/trusty/ocamlnet/trusty

« back to all changes in this revision

Viewing changes to examples/cgi/netcgi2-plex/netplex.conf

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-09-02 14:12:33 UTC
  • mfrom: (18.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110902141233-zbj0ygxb92u6gy4z
Tags: 3.4-1
* New upstream release
  - add a new NetcgiRequire directive to ease dependency management
    (Closes: #637147)
  - remove patches that were applied upstream:
    + Added-missing-shebang-lines-in-example-shell-scripts
    + Try-also-ocamlc-for-POSIX-threads

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* Configuration file for the "netplex" program. *)
 
2
 
 
3
netplex {
 
4
  controller {
 
5
    max_level = "debug";    (* Log level *)
 
6
    logging {
 
7
      type = "stderr";    (* Log to stderr *)
 
8
    }
 
9
  };
 
10
  service {
 
11
    name = "netcgi";
 
12
    protocol {
 
13
      (* This section creates the socket for FastCGI *)
 
14
      name = "fcgi";
 
15
      address {
 
16
        type = "internet";
 
17
        bind = "0.0.0.0:4444";
 
18
      };
 
19
    };
 
20
    protocol {
 
21
      (* This section creates the socket for SCGI *)
 
22
      name = "scgi";
 
23
      address {
 
24
        type = "internet";
 
25
        bind = "0.0.0.0:4445";
 
26
      };
 
27
    };
 
28
    protocol {
 
29
      (* This section creates the socket for AJP 1.3 *)
 
30
      name = "ajp";
 
31
      address {
 
32
        type = "internet";
 
33
        bind = "0.0.0.0:4446";
 
34
      };
 
35
    };
 
36
    processor {
 
37
      (* This section specifies how to process data of the socket *)
 
38
      type = "netcgi";
 
39
      timeout = 5;
 
40
    };
 
41
    workload_manager {
 
42
      type = "dynamic";
 
43
      max_jobs_per_thread = 1;  (* Everything else is senseless *)
 
44
      min_free_jobs_capacity = 1;
 
45
      max_free_jobs_capacity = 1;
 
46
      max_threads = 20;
 
47
    };
 
48
  }
 
49
}