-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.conf
53 lines (45 loc) · 978 Bytes
/
example.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
server
{
listen 8080
root /home/anlima/webserv/public/
index index.html
client_max_body_size 1048576
autoindex off
location /crud {
index read.html
location /create.html {
allow_methods GET POST
}
location /read.html {
allow_methods GET POST DELETE
}
}
location /cgi-bin {
index index.html
cgi_path /usr/bin/python3
allow_methods GET
}
}
server {
listen 9090
root /home/anlima/webserv/public
index error.html
client_max_body_size 1048576
error_page index.html
location /crud {
index read.html
location /create.html {
allow_methods GET POST
}
location /read.html {
allow_methods GET
}
location /update.html {
allow_methods GET POST
}
}
location /cgi-bin {
index script.py
cgi_path /usr/bin/python3
}
}