-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.conf
43 lines (43 loc) · 952 Bytes
/
server.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
server {
server_names:
localhost;
cgi_ext: .pl, .bla, .py, .whatever;
cgi_bin: .bla=/Users/mhahn/Downloads/cgi_tester, .py=python3;
cgi_root: /cgi;
cgi_methods: GET;
port:
80,
90;
loc:
./, /image, /upl, /cgi, /redirect;
error_pages:
404: ./error404.html,
500: ./error500.html;
accept_files:
false;
root : /server;
index : ./index.html;
upload : /upload;
client_max_body_size : 3000;
/image {
root: ./img/ ;
directory_listing: false;
default_file: ../index.html;
methods: GET;
}
/upl {
root: ./upload/;
directory_listing: false;
default_file: ../index.html;
methods: GET, POST, DELETE;
client_max_body_size : 5000;
}
/cgi {
root: /cgi;
directory_listing: true;
methods: GET;
}
/redirect {
redirect: /image;
}
}