-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcgi_tester.conf
80 lines (69 loc) · 1.67 KB
/
cgi_tester.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
76
77
78
79
80
server {
listen 10006 10007 10008
max_body_size 100000000
root ./data
error_page error_page.html
location / {
accepted_method GET
root ./data
index index.html
auto_index on
}
location /put_test {
accepted_method PUT
root ./data/put_test
index index.html
}
location /upload {
accepted_method GET,POST,PUT,DELETE
root ./data/upload
uploaded_path ./data/upload
}
location /post_body {
accepted_method POST
root ./data/put_test
index index.html
max_body_size 100
}
location /put_test {
accepted_method PUT
root ./data/put_test
index index.html
}
location /images {
accepted_method GET
root ./data/images
auto_index on
}
location /directory {
accepted_method GET
root ./data/YoupiBanane
index youpi.bad_extension
}
location /hi {
accepted_method GET
root ./data/YoupiBanane
auto_index on
}
location .bla {
accepted_method GET,POST,DELETE
root ./data/YoupiBanane
ourcgi_pass ./cgi_tester
ourcgi_index youpi.bla
uploaded_path ./data/upload
}
location .py {
accepted_method GET,POST
root ./data/cgi
ourcgi_pass /usr/bin/python3
ourcgi_index post_test.py
uploaded_path ./data/upload
}
location .pl {
accepted_method GET,POST
root ./data/cgi
ourcgi_pass /usr/bin/perl
ourcgi_index hi.pl
uploaded_path ./data/upload
}
}