-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtomldb.config
executable file
·102 lines (89 loc) · 2.23 KB
/
tomldb.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
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
[[server]]
#name = "test"
listen = 8080
host = "127.0.0.1"
root = "www"
index = "index.html"
client_max_body_size = 100000
allow_methods = ["GET", "POST", "DELETE"]
cgi_ext = [".py", ".cgi"]
cgi_path = "/cgi-bin"
[[server.error_page]]
400 = "www/errors/400.html"
403 = "www/errors/403.html"
404 = "www/errors/404.html"
405 = "www/errors/404.html"
409 = "www/errors/409.html"
413 = "www/errors/413.html"
415 = "www/errors/415.html"
501 = "www/errors/501.html"
502 = "www/errors/502.html"
504 = "www/errors/504.html"
505 = "www/errors/505.html"
[[server.location]]
uri = "/redirect-test/"
redirect = "https://sisyphos-berlin.net/"
#redirect = "/images/secret.png"
allow_methods = ["GET"]
[[server.location]]
uri = "/"
autoindex = true
allow_methods = ["GET", "POST", "DELETE"]
upload_dir = "www/uploads/"
is_cgi = false
[[server.location]]
uri = "/cgi-bin/"
path = "/cgi-bin/"
root = "/cgi-bin"
allow_methods = ["GET", "POST", "DELETE"]
#autoindex = true
is_cgi = true
[[server.location]]
uri = "/uploads/"
path = "/uploads/"
root = "www"
allow_methods = ["GET", "POST", "DELETE"]
content_type = ["text/plain", "text/html", "text/css", "text/javascript", "image/jpeg", "image/png"]
autoindex = true
is_cgi = false
[[server.location]]
uri = "/static/"
path = "/static/"
root = "www"
allow_methods = ["GET", "POST", "DELETE"]
#autoindex = true
#content_type = ["text/html", "text/css", "text/javascript", "image/jpeg", "image/png"]
#is_cgi = false
#index = "upload.html"
[[server.location]]
uri = "/images/"
path = "/images/"
root = "www"
autoindex = true
allow_methods = ["GET", "POST"]
content_type = ["text/html", "text/css", "text/javascript", "image/jpeg", "image/png"]
### Second server ###
[[server]]
#name = "server2"
listen = 8081
host = "127.0.0.1"
root = "www2"
index = "index.html"
autoindex = true
allow_methods = ["GET", "POST", "DELETE"]
[[server.error_page]]
404 = "www/errors/404.html"
405 = "www/errors/404.html"
[[server.location]]
uri = "/"
autoindex = true
allow_methods = ["GET", "POST", "DELETE"]
upload_dir = "www/uploads/"
is_cgi = false
[[server.location]]
uri = "/images/"
path = "/images/"
root = "www2"
#autoindex = false
allow_methods = ["GET", "POST"]
content_type = ["text/html", "text/css", "text/javascript", "image/jpeg", "image/png"]