-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
server { | ||
listen 4444; | ||
|
||
error_pages 404 {./error_pages/404.html} | ||
|
||
server_name space.com; | ||
|
||
default_file index.html; | ||
|
||
accepted_methods GET; | ||
|
||
location { | ||
autoindex on; | ||
accepted_methods GET; | ||
path ./; | ||
} | ||
|
||
location /for_upload { | ||
max_body_size 100b; | ||
accepted_methods GET PUT POST DELETE; | ||
path ./for_upload; | ||
file_storage ./for_upload; | ||
} | ||
|
||
location /directory { | ||
path ./; | ||
} | ||
|
||
location /files { | ||
path ./for_upload; | ||
autoindex on; | ||
} | ||
|
||
location /cgi-bin { | ||
accepted_methods POST GET; | ||
path ./cgi-bin; | ||
} | ||
|
||
location /redirect { | ||
redirect 301 https://google.com; | ||
} | ||
} | ||
|
||
server { | ||
listen 1111; | ||
|
||
server_name youpi.com; | ||
|
||
client_max_body_size 20000000b; | ||
|
||
default_file youpi.bad_extension; | ||
|
||
location { | ||
accepted_methods GET; | ||
path ./YoupiBanane; | ||
} | ||
|
||
location /put_test { | ||
accepted_methods PUT; | ||
file_storage ./for_upload; | ||
} | ||
|
||
location /for_upload { | ||
accepted_methods GET POST DELETE; | ||
path ./for_upload; | ||
file_storage ./for_upload; | ||
|
||
} | ||
|
||
location /post_body { | ||
accepted_methods POST; | ||
} | ||
|
||
location /directory { | ||
accepted_methods GET; | ||
path ./; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>FROM FILE</title> | ||
</head> | ||
<body> | ||
<h1 style="color: #ab000b">400 Bad Request</h1> | ||
</body> | ||
</html> |