-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebserv_manyservers.conf
More file actions
executable file
·112 lines (104 loc) · 1.81 KB
/
webserv_manyservers.conf
File metadata and controls
executable file
·112 lines (104 loc) · 1.81 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Fichero de configuración estructurado de manera ordenada
# para testings de parseo
server {
server_name ServerName1 ; # default empty
listen 127.0.0.1:8080 ;
client_max_body_size 10M ;
error_page 400 ./400.html ;
error_page 401 ./other400 ;
autoindex on ;
root /web1 ;
location / {
error_page 404 /errors/404.html ;
method GET ;
method POST ;
}
location /put_test/ {
method PUT ;
}
location /cgi {
method GET ;
method POST ;
method DELETE ;
index php.php ;
}
location hola.bla {
method POST ;
}
location .bla {
method GET ;
method POST ;
}
location /post_body {
method POST ;
client_max_body_size 100 ;
}
location /directory/
{
method GET ;
return 301 /POST/ñpost-upload%2520copy%202.html ;
}
location /uploads
{
method DELETE ;
method GET ;
method POST ;
}
}
server {
server_name ServerName1 ; # default empty
listen 127.0.0.1:8080 ;
client_max_body_size 10M ;
error_page 400 ./400.html ;
error_page 401 ./other400 ;
autoindex on ;
root /web1 ;
location /upload
{
method GET ;
method POST ;
}
}
# Fichero de configuración estructurado de manera ordenada
# para testings de parseo
server {
server_name ServerName1 ; # default empty
listen 127.0.0.2:8080 ;
client_max_body_size 10M ;
error_page 400 ./400.html ;
error_page 401 ./other400 ;
autoindex on ;
root /web2 ;
location / {
error_page 404 /errors/404.html ;
method GET ;
method POST ;
}
location /put_test/ {
method PUT ;
}
location /cgi {
method GET ;
method POST ;
method DELETE ;
index php.php ;
}
location .bla {
method POST ;
}
location /post_body {
method POST ;
client_max_body_size 100 ;
}
location /directory/
{
method GET ;
return 301 /POST/ñpost-upload%2520copy%202.html ;
}
location /upload
{
method DELETE ;
method GET ;
method POST ;
}
}