-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.conf
75 lines (65 loc) · 1.67 KB
/
default.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
server{
listen 127.0.0.1:8081;
server_name 42_Network;
client_max_body_size 80m;
error_page 403 ./resources/error/error403.html;
error_page 404 ./resources/error/error404.html;
error_page 405 ./resources/error/error405.html;
error_page 411 ./resources/error/error411.html;
error_page 413 ./resources/error/error413.html;
error_page 500 ./resources/error/error500.html;
location /upload{
root ./resources;
autoindex on;
upload_dir ;
}
location /rat{
root ./resources;
autoindex off;
upload_dir ;
}
location /redirection{
return 301 /;
}
location /{
root ./html5up-dimension;
index index.html;
autoindex on;
cgi_ext .py /usr/bin/python;
cgi_ext .pl /usr/bin/perl;
}
}
server{
listen 127.0.0.1:8081;
server_name website2;
client_max_body_size 500m;
error_page 403 ./resources/error/error403.html;
error_page 404 ./resources/error/error404.html;
error_page 405 ./resources/error/error405.html;
error_page 411 ./resources/error/error411.html;
error_page 413 ./resources/error/error413.html;
location /{
index index.html;
root ./html5up-dimension;
cgi_ext .py /usr/bin/python;
cgi_ext .pl /usr/bin/perl;
}
}
server{
listen 127.0.0.1:8082;
server_name website3;
error_page 403 ./resources/error/error403.html;
error_page 404 ./resources/error/error404.html;
error_page 405 ./resources/error/error405.html;
error_page 411 ./resources/error/error411.html;
error_page 413 ./resources/error/error413.html;
client_max_body_size 500m;
location /playa{
index index.html;
root ./resources;
}
location /{
root ./resources;
allow_request GET POST;
}
}