-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
107 lines (107 loc) · 3.05 KB
/
config.json
File metadata and controls
107 lines (107 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"servers": [
{
"name": "server1",
"client_body_size_limit": 1048576,
"addr": "127.0.0.1",
"ports": [
"8080",
"8081"
],
"error_pages": {
"404": "errors/404.html",
"500": "errors/500.html"
},
"routes": {
"/": {
"accepted_methods": [
"GET",
"POST"
],
"default_file": "index.html"
},
"/errors": {
"accepted_methods": [
"GET",
"POST"
],
"default_file": "index2.html"
},
"/upload": {
"accepted_methods": [
"POST",
"GET",
"POST"
],
"default_file": "import.html"
},
"/cgi-bin": {
"accepted_methods": [
"GET",
"POST"
],
"default_file": "cgi-bin/script.py",
"cgi": "/usr/bin/python3"
},
"cgi-bin/script.py": {
"accepted_methods": [
"GET",
"POST"
],
"cgi": "/usr/bin/python3"
},
"/redirect": {
"accepted_methods": [
"GET",
"POST"
],
"redirection": "/"
},
"/static": {
"accepted_methods": [
"GET"
],
"directory_listing": true
},
"/delete": {
"accepted_methods": [
"DELETE"
]
}
}
},
{
"name": "server2",
"client_body_size_limit": 5242880,
"addr": "127.0.0.1",
"ports": [
"8082",
"8080"
],
"error_pages": {
"404": "/var/www/errors/404.html"
},
"routes": {
"/": {
"accepted_methods": [
"GET"
],
"default_file": "index.html"
},
"/abdou": {
"accepted_methods": [
"GET",
"POST"
],
"default_file": "index2.html"
},
"/cgi-bin/process.php": {
"accepted_methods": [
"POST"
],
"cgi": "/usr/bin/php"
}
}
}
]
}