-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_config
66 lines (55 loc) · 939 Bytes
/
example_config
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
server {
listen 2000;
server_name Wahoo.com;
root rootdir/;
host 127.0.0.1;
index index.html;
client_max_body_size 1000000000;
listing on;
error_pages
400 /error/400.html
403 /error/403.html
404 /error/404.html
405 /error/405.html
500 /error/500.html
501 /error/501.html
502 /error/502.html;
location / {
index index.html;
methods GET POST;
}
location /test/ {
listing on;
index test.html;
methods GET POST;
}
location /lmao/ {
listing on;
index lol.html;
proxy /test/lol/;
methods GET;
}
location /delete/ {
listing on;
methods GET POST DELETE;
}
location /cgi-bin/ {
root: rootdir/;
index time.py;
methods GET POST;
cgi_path /usr/bin/perl /usr/bin/python3;
cgi_extensions .pl .py;
}
location /tmp/ {
root: rootdir/;
listing on;
methods GET POST DELETE;
}
}
server {
index test.html;
root rootdir/;
listen 2000;
host 127.0.0.1;
server_name theserver.com;
}