-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_config.conf
More file actions
executable file
·58 lines (48 loc) · 1.56 KB
/
example_config.conf
File metadata and controls
executable file
·58 lines (48 loc) · 1.56 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
server {
listen 8080; # listening port, mandatory parameter
host 127.0.0.1; # host or 127.0.0.1 by default
server_name localhost; # specify server_name AKA host
root ./website; # root folder of site directory
error_page 404 /error/404.html 401 /error/401.html 304 /error/304.html; # default error page
client_max_body_size 1024k; # max request body size
index index1.html index2.html; # default pages when requesting a directory
timeout 6000; # time for a request to time out
autoindex on;
allow_methods GET POST;
location /loc1/ {
index index.html; # default page when requesting a directory, copies root index by default
root ./website2; # root folder of the location, if not specified, taken from the server.
autoindex on;
allow_methods POST GET DELETE;
location /loc1/subloc1/ {
return https://www.google.com;
allow_methods POST GET DELETE;
}
}
location /fakeywakey/ {
alias website2/loc1/index.html;
}
location /cgi-bin/ {
cgi_ext .py .js; # which extentions should run cgi
autoindex on;
}
}
server {
listen 8005;
host 127.0.0.1;
server_name test_you;
error_page 404 /error/404.html;
client_max_body_size 5364M;
index index.html index2.html;
timeout 60000;
autoindex on;
allow_methods GET;
root ./website;
location /block2loc1/ {
autoindex on;
allow_methods POST GET;
index index.html;
return abc/index1.html;
alias gamer;
}
}