-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path42_test_config.txt
49 lines (41 loc) · 956 Bytes
/
42_test_config.txt
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
server{
listen 127.0.0.1:8000;
server_name redxred.com www.redxred.com;
client_max_body_size 80m;
error_page 405 504 505 /Error/default.html;
index random;
autoindex on;
cgi_ext .sh /bin/bash;
cgi_ext .py /usr/bin/python3;
limit_except GET POST DELETE;
limit_except GET;
location / {
root ./web_page/42_test;
client_max_body_size 800m;
index index.html;
}
location /42_test {
root ./web_page;
}
location /Error {
root ./web_page;
index index_test.html;
}
location /42_test/special_directory {
root ./web_page;
}
location /42_test/special_directory/special_path {
return 301 42_test/special_directory/redirected_path/index.html;
root ./web_page;
index redirected.html;
}
location /42_test/autoindex_directory {
root ./web_page;
autoindex on;
}
location /42_test/index_directory {
root ./web_page;
autoindex off;
index test_index.html;
}
}