-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebserv.conf
More file actions
61 lines (53 loc) · 1.15 KB
/
webserv.conf
File metadata and controls
61 lines (53 loc) · 1.15 KB
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
server {
listen 8081;
server_name localhost;
location / {
methods GET POST DELETE;
root www;
autoindex on;
default_file photography_blog.html;
}
location /about/ {
methods GET;
root www;
autoindex off;
default_file index1.html;
}
location /uploads/ {
methods GET POST DELETE;
root www;
autoindex on;
default_file index2.html;
}
location /docs/ { methods GET POST DELETE;
root www;
autoindex off;
redirect /about/;
default_file index1.html;
}
location /submit/ {
methods GET POST;
root www;
autoindex on;
}
location /cgi/ {
methods GET POST DELETE;
root www;
autoindex on;
# default_file index3.html;
}
client_max_body_size 10000000;
}
server {
listen 80;
server_name example.com;
location / {
methods GET;
root www;
default_file index_example.html;
autoindex on;
# cgi .sh /usr/bin/python3;
}
error_page 404 www/html/404.html;
client_max_body_size 10000;
}