forked from PIut0/Webserv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_example.config
More file actions
46 lines (40 loc) · 1007 Bytes
/
config_example.config
File metadata and controls
46 lines (40 loc) · 1007 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
server {
server_name default;
listen 8176 127.0.0.1; # 7번라인 8번라인 반드시 연달아와야합니다. 만약 서버네임을 입력하고 싶지 않다면, 7번라인 값에 NONE 을 입력합니다. (그래도 8번라인은 필요합니다.)
location / {
allow_methods GET;
root ./;
index index.html index2.html;
auto_index on;
cgi_info .bla ./cgi_tester;
}
location /put_test/ {
root ./test_dir/;
index index.html index2.html;
auto_index off;
cgi_info .bla ./cgi_tester;
}
location /post_body {
error_page ./html/404.html;
allow_methods POST;
root ./test_dir/post_body;
index index.html index2.html;
auto_index on;
cgi_info .bla ./cgi_tester;
request_max_body_size 100;
}
location /directory/ {
allow_methods GET POST DELETE;
root ./YoupiBanane/;
index youpi.bad_extension;
cgi_info .bla ./cgi_tester;
}
}
server {
server_name example.com;
listen 80 127.0.0.1;
location / {
allow_methods GET;
return 301 http://example.com;
}
}