-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbb.conf
67 lines (60 loc) · 2.8 KB
/
bb.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
http {
server {
listen 8080;
server_name localhost;
error_page 400 ./templates/400error.html 404 ./templates/404error.html 405 ./templates/405error.html 411 ./templates/411error.html 413 ./templates/413error.html 414 ./templates/414error.html 415 ./templates/415error.html 500 ./templates/500error.html 501 ./templates/501error.html 503 ./templates/503error.html 505 ./templates/505error.html;
client_max_body_size 10M;
root ./YoupiBanane;
index index.html;
location / {
limit_except GET;
root /tmp/www2;
index youpi.bad_extension;
autoindex on;
return 301 www.naver.com/new;
}
location /put_test {
limit_except PUT ;
root /tmp/www2;
index index2.html;
autoindex on;
return 301 www.naver.com/new;
}
location /post_body {
limit_except POST ;
root /tmp/www2;
index index2.html;
autoindex on;
return 301 www.naver.com/new;
}
location /directory {
limit_except GET POST;
root /tmp/www2;
index youpi.bad_extension;
autoindex on;
return 301 www.naver.com/new;
}
location /hello {
limit_except GET POST PUT;
root /tmp/www2;
index index2.html;
autoindex on;
return 404 www.naver.com/new;
}
}
server {
listen 8000;
server_name localhost;
error_page 400 ./templates/400error.html 404 ./templates/404error.html 405 ./templates/405error.html 408 ./templates/408error.html 411 ./templates/411error.html 413 ./templates/413error.html 414 ./templates/414error.html 415 ./templates/415error.html 500 ./templates/500error.html 501 ./templates/501error.html 505 ./templates/505error.html;
client_max_body_size 10M;
root ./html;
index test.html;
location / {
limit_except GET POST;
root /tmp/www2;
index test.html;
autoindex on;
#return 301 http://www.naver.com;
}
}
}