1
- server
1
+ server
2
2
{
3
- listen 8001 ;
3
+ listen 8002 ;
4
4
5
5
host 127.0.0.1;
6
- client_max_body_size 10000000;
7
- root ./www/html;
8
- server_name localhost;
9
- server_name listen;
10
-
6
+ client_max_body_size 100;
7
+ server_name hhjdsghj dsfsdfda dfdsfsdf;
8
+
11
9
error_page 404 www/html/error_pages/404.html;
12
10
error_page 403 www/html/error_pages/403.html;
13
11
error_page 409 www/html/error_pages/409.html;
@@ -19,24 +17,24 @@ server
19
17
index index.html;
20
18
21
19
location / {
22
- autoindex on ;
20
+ autoindex off ;
23
21
}
24
22
25
23
location /cgi_bin
26
24
{
27
-
28
25
root ./www/html/cgi_bin;
29
- allow_Methods GET POST;
26
+ allow_Methods GET;
27
+ allow_Methods POST;
30
28
index hello.html;
31
29
path_info .py /usr/bin/python3;
32
30
path_info .php /php-cgi;
33
- #listen 8001;
34
- autoindex on;
31
+ # listen 8001;
32
+ # autoindex on;
35
33
}
36
34
37
35
location /red
38
36
{
39
- return 400 https ://www.youtube.com/watch?v=fhdX3Wcxwas&t=2768s&ab_channel=BGMGhibliStudio ;
37
+ return 301 http ://localhost:8002/ ;
40
38
}
41
39
42
40
location /delete {
@@ -52,78 +50,77 @@ server
52
50
allow_methods POST GET;
53
51
upload on;
54
52
upload_store ./www/html/upload;
53
+ #autoindex on;
55
54
}
56
55
57
56
location /getto {
58
57
root ./www/html/upload;
59
- index video.mp4;
58
+ # index video.mp4;
60
59
allow_methods GET;
61
- autoindex off ;
60
+ autoindex on ;
62
61
}
63
62
}
63
+ # server
64
+ # {
65
+ # listen 8002;
64
66
65
- server
66
- {
67
- listen 8001;
68
-
69
- host 127.0.0.1;
70
- client_max_body_size 10000000;
71
- root ./www/html;
72
- server_name localhostp;
73
- error_page 404 www/html/error_pages/404.html;
74
- error_page 403 www/html/error_pages/403.html;
75
- error_page 409 www/html/error_pages/409.html;
76
- error_page 400 www/html/error_pages/400.html;
77
- error_page 405 www/html/error_pages/405.html;
78
- error_page 413 www/html/error_pages/413.html;
79
- error_page 500 www/html/error_pages/500.html;
67
+ # host 127.0.0.1;
68
+ # client_max_body_size 10000000;
69
+ # root ./www/html;
70
+ # server_name localhostp;
71
+ # error_page 404 www/html/error_pages/404.html;
72
+ # error_page 403 www/html/error_pages/403.html;
73
+ # error_page 409 www/html/error_pages/409.html;
74
+ # error_page 400 www/html/error_pages/400.html;
75
+ # error_page 405 www/html/error_pages/405.html;
76
+ # error_page 413 www/html/error_pages/413.html;
77
+ # error_page 500 www/html/error_pages/500.html;
80
78
81
- index index.html;
79
+ # index index.html;
82
80
83
- location / {
84
- autoindex on;
85
- }
81
+ # location / {
82
+ # autoindex on;
83
+ # }
86
84
87
- location /cgi_bin
88
- {
85
+ # location /cgi_bin
86
+ # {
89
87
90
- root ./www/html;
91
- allow_Methods GET POST;
92
- index hello.html;
93
- path_info .py /usr/bin/python3;
94
- path_info .php /php-cgi;
95
- #listen 8001;
96
- #autoindex on;
97
- }
98
-
99
- location /red
100
- {
101
- return 301 https://www.youtube.com/watch?v=_Nbm2yn8WA8&t=30s;
102
- }
88
+ # root ./www/html;
89
+ # allow_Methods GET POST;
90
+ # index hello.html;
91
+ # path_info .py /usr/bin/python3;
92
+ # path_info .php /php-cgi;
93
+ # #listen 8001;
94
+ # #autoindex on;
95
+ # }
103
96
104
- location /delete {
105
- root ./www/html/delete;
106
- allow_methods DELETE;
107
- index todelete;
108
- path_info .py /usr/bin/python3;
109
- }
97
+ # location /red
98
+ # {
99
+ # return 301 https://www.youtube.com/watch?v=_Nbm2yn8WA8&t=30s;
100
+ # }
110
101
111
- location /upload{
112
- root ./www/html/upload;
113
- index upload.html;
114
- allow_methods POST GET;
115
- upload on;
116
- upload_store /upload;
117
- }
102
+ # location /delete {
103
+ # root ./www/html/delete;
104
+ # allow_methods DELETE;
105
+ # index todelete;
106
+ # path_info .py /usr/bin/python3;
107
+ # }
118
108
119
- location /getto {
120
- root ./www/html/upload;
121
- index vid.mp4 ;
122
- allow_methods GET;
123
- autoindex off ;
124
- }
125
- }
109
+ # location /upload {
110
+ # root ./www/html/upload;
111
+ # index upload.html ;
112
+ # allow_methods POST GET;
113
+ # upload on ;
114
+ # upload_store /upload;
115
+ # }
126
116
117
+ # location /getto {
118
+ # root ./www/html/upload;
119
+ # index vid.mp4;
120
+ # allow_methods GET;
121
+ # autoindex off;
122
+ # }
123
+ # }
127
124
128
125
# server
129
126
# {
@@ -188,4 +185,29 @@ server
188
185
# allow_methods GET;
189
186
# autoindex off;
190
187
# }
188
+ # }
189
+
190
+
191
+
192
+ # server
193
+ # {
194
+ # listen 8001 8001 5000 5000;
195
+
196
+ # client_max_body_size 100;
197
+
198
+
199
+ # server_name localhost;
200
+
201
+
202
+
203
+ # index index.html;
204
+ # location / {
205
+
206
+
207
+ # }
208
+
209
+
210
+
211
+
212
+
191
213
# }
0 commit comments