-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.conf
60 lines (41 loc) · 791 Bytes
/
config.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
default www.example.com:5000 {
error ./static/templates/errors.html;
max_header_size 4096;
max_body_size 1000000;
route / {
methods GET;
root ./static/;
index index.html;
}
route /files {
methods GET DELETE;
root ./static/files/;
dir_listing on;
}
route /upload {
methods GET POST;
root ./static/;
index upload.html;
upload files/;
}
route /delete {
methods GET DELETE;
root ./static/;
index delete.html;
}
route /redir {
redir /;
}
route /cgi-bin/php {
methods GET;
root ./static/cgi-bin/php/;
index index.php;
cgi php /usr/bin/php-cgi;
}
route /cgi-bin/perl {
methods GET;
root ./static/cgi-bin/perl/;
index index.pl;
cgi php /usr/bin/perl;
}
}