-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebserv1.conf
More file actions
49 lines (35 loc) · 702 Bytes
/
webserv1.conf
File metadata and controls
49 lines (35 loc) · 702 Bytes
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 8080;
server_name localhost 127.0.0.1;
location / {
methods GET;
root www;
default_file index.html;
autoindex on;
cgi .sh /usr/bin/python3;
}
location /file_upload {
methods POST;
root www;
upload_directory www/upload;
}
location /upload {
methods GET POST DELETE;
autoindex on;
root www;
}
location /cgi/ {
methods GET POST;
root www;
autoindex on;
cgi .py /usr/bin/python3;
cgi .sh /bin/bash;
}
location /empty {
methods GET;
root www/html;
default_file empty.html;
}
error_page 404 www/html/404.html;
client_max_body_size 99;
}