-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_multiple.conf
78 lines (63 loc) · 1.22 KB
/
server_multiple.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
server {
listen 80;
server_name localhost;
error_page 404 ./www/404_custom.html;
location / {
root ./www/;
accept GET POST DELETE;
upload ./www/upload/;
index index.html;
}
location /formula1
{
root ./www/formula1;
accept GET POST DELETE;
cgi .php /Users/apavel/cursus/webserv/cgi-bin/php-cgi;
cgi .py /usr/bin/python3;
autoindex on;
}
location /rock {
root ./www/musica/rock/;
accept GET;
autoindex on;
}
location /fiesta/loca {
root ./www/musica/techno/;
accept GET;
autoindex on;
}
location /fiesta/chill {
root ./www/musica/techno/light/;
accept GET;
index light_track.html;
}
location /coche {
accept GET;
redirect 301 /formula1/;
}
}
server {
listen 81;
server_name adri.com;
client_max_body_size 5;
location / {
root ./www/;
accept GET POST DELETE;
upload ./www/upload/;
cgi .php /Users/apavel/cursus/webserv/cgi-bin/php-cgi;
autoindex on;
index index.html;
}
location /rock {
root ./www/musica/rock/;
autoindex on;
}
}
server {
listen 82;
location / {
root ./www/;
accept GET;
index empty.html;
}
}