unit.example.config (804:fe8d2dea28dd) unit.example.config (1045:6079ce642254)
1{
2 "applications": {
3 "example_php": {
4 "type": "php",
5 "user": "nobody",
6 "processes": 2,
7 "root": "/usr/share/doc/unit/examples/php-app",
8 "index": "index.php"
9 },
10
11 "example_python": {
12 "type": "python",
13 "user": "nobody",
14 "processes": 2,
15 "path": "/usr/share/doc/unit/examples/python-app",
16 "module": "wsgi"
17 },
18
19 "example_go": {
20 "type": "external",
21 "user": "nobody",
22 "executable": "/tmp/go-app"
23 },
24
25 "example_perl": {
26 "type": "perl",
27 "user": "nobody",
28 "processes": 1,
29 "working_directory": "/usr/share/doc/unit-perl/examples/perl-app",
30 "script": "/usr/share/doc/unit-perl/examples/perl-app/index.pl"
31 }
32 },
33
34 "listeners": {
35 "*:8300": {
1{
2 "applications": {
3 "example_php": {
4 "type": "php",
5 "user": "nobody",
6 "processes": 2,
7 "root": "/usr/share/doc/unit/examples/php-app",
8 "index": "index.php"
9 },
10
11 "example_python": {
12 "type": "python",
13 "user": "nobody",
14 "processes": 2,
15 "path": "/usr/share/doc/unit/examples/python-app",
16 "module": "wsgi"
17 },
18
19 "example_go": {
20 "type": "external",
21 "user": "nobody",
22 "executable": "/tmp/go-app"
23 },
24
25 "example_perl": {
26 "type": "perl",
27 "user": "nobody",
28 "processes": 1,
29 "working_directory": "/usr/share/doc/unit-perl/examples/perl-app",
30 "script": "/usr/share/doc/unit-perl/examples/perl-app/index.pl"
31 }
32 },
33
34 "listeners": {
35 "*:8300": {
36 "application": "example_php"
36 "pass": "applications/example_php"
37 },
38
39 "*:8400": {
37 },
38
39 "*:8400": {
40 "application": "example_python"
40 "pass": "applications/example_python"
41 },
42
43 "*:8500": {
41 },
42
43 "*:8500": {
44 "application": "example_go"
44 "pass": "applications/example_go"
45 },
46
47 "*:8600": {
45 },
46
47 "*:8600": {
48 "application": "example_perl"
48 "pass": "applications/example_perl"
49 }
50 }
51}
49 }
50 }
51}