-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.conf
75 lines (49 loc) · 1.01 KB
/
default.conf
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
http {
client_header_timeout 60;
client_body_timeout 60;
send_timeout 60;
server {
keepalive_requests 100;
keepalive_timeout 60;
listen 127.0.0.1:8003;
gateway_timeout 10;
server_name 127.0.0.1;
index index.html;
client_max_body_size 819200000;
session_timeout 60;
root /;
cgi .py /usr/local/bin/python3;
cgi .php /usr/bin/php;
error_page 400 /html/error.html;
location / {
limit_except GET POST HEAD PUT DELETE;
autoindex on;
}
location /src {
autoindex on;
index /html/index.html;
limit_except GET POST;
location /http {
}
}
location /cgi-bin {
autoindex on;
error_page 500 /html/error.html;
}
}
server {
listen 127.0.0.1:8001;
server_name 127.0.0.2;
error_page 404 /html/hello.html;
root /;
}
server {
listen 127.0.0.1:8002;
server_name localhost;
root /;
error_page 404 /html/error.html;
location / {
}
root /;
}
}