-
Notifications
You must be signed in to change notification settings - Fork 1
/
basic_config.txt
59 lines (57 loc) · 1.04 KB
/
basic_config.txt
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
server A {
client_max_body_size 4000000000;
listen 8080;
listen 8081;
listen 8082;
listen 8083;
error_page 404 error/404.html;
allow_methods GET POST;
root html;
location / {
allow_methods GET POST;
index index.html;
}
location /uploads {
allow_methods GET POST DELETE;
autoindex on;
root html/uploads;
}
location /hoi {
autoindex on;
}
location /cgi-bin {
autoindex on;
root html/cgi-bin;
}
location /php-bin {
autoindex on;
root html/php-bin;
}
}
server B {
client_max_body_size 1024;
listen 8090;
listen 8091;
listen 8092;
listen 8093;
server_name our-site.org our-site2.org;
error_page 404 error/404.html;
allow_methods GET POST DELETE;
root html;
location / {
allow_methods GET;
autoindex on;
}
location /uploads {
allow_methods GET POST;
autoindex on;
root html/uploads;
}
location /hoi {
autoindex on;
}
location /cgi-bin {
autoindex on;
root /hoi;
}
}