-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigFile.txt
More file actions
83 lines (64 loc) · 1.1 KB
/
configFile.txt
File metadata and controls
83 lines (64 loc) · 1.1 KB
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
http {
index index.php;
autoindex off;
root /www;
server {
autoindex on;
server_name localhost;
listen 4000;
location / {
alias /www;
limit_except GET POST DELETE;
post_file on;
}
location /onlyget {
limit_except GET;
}
# location /onlypost {
# limit_except POST;
# }
location /onlydelete {
limit_except DELETE;
}
location /onlydeletenoautoindex {
limit_except DELETE;
autoindex off;
}
location /redirect {
return 307 /;
}
}
server {
server_name www.asdf.com;
listen 4001;
error_pages 400 401 402 403 404 /www/errors;
location / {
alias /YoupiBanane;
autoindex on;
limit_except GET;
}
location /put_test {
alias /put_test;
post_file on;
limit_except PUT;
}
location /post_body {
limit_except POST;
alias /YoupiBanane/post_body;
client_max_body_size 100;
post_file on;
}
location /directory {
alias /YoupiBanane;
index youpi.bad_extension;
limit_except GET;
}
cgi .bla {
limit_except POST;
cgi_path /YoupiBanane/ubuntu_cgi_tester;
}
cgi .py {
cgi_path /www/cookie.py;
}
}
}