Please enable JavaScript.
Coggle requires JavaScript to display documents.
Request, have CGI in Location, have CGI in Location, justr0ma&hjrifi -…
Request
Parse Request
Check Method
GET
DELETE
Other Method
501 Not Implemented
POST
Content-length
if Content length > max_body_size."from config file"
413 Content Too Large
Valid Request
using path to matching location
GET
Path is Directory
auto index off
2 more items...
auto index on
2 more items...
Path is File
200 OK
404 Not Found
403 Forbidden
CGI
Returtn Code Depend on cgi
500 Internal Server Error
1 more item...
DELETE
Path is Directory
CGI
501 Not Implemented
return
301 Moved Permanently
location have redirection like: return 301 /home/index.html
POST
upload on
Path is File
3 more items...
Path is Directory
2 more items...
upload off
403 Forbidden
use Default if Not matching any location
Request don't have at least one type "transfer encoding or content length"
411 Length Required
Transfer-Encoding
Chunked
Not chunked
Method Not allowed
405 Method Not Allowed
Request don't have at least one type "transfer encoding && Content length"
400 Bad Request
Path
it depends in rules in your config file
return error compatible with rules in your server
Version Protocol
unsupported or invalid protocol
400 Bad Request
if server does not support the version of the HTTP protocol
505 HTTP Version Not Supported
if your server requires the client to use a different protocol or version to serve him
426 Upgrade Required
Host
if missing
if exist
If exist but does not match any of the virtual hosts configured on the server
use the default block server
use the virtual hosts configured on the server that matched
there is many other header you can parse any one you want
have CGI in Location
have CGI in Location
justr0ma&hjrifi