This program can receive a single arg, and if there is no arg, it runs "default.conf" by default.
The setup of the conf file is based on nginx.
Then connect to the browser with the open port printed on the terminal (Enter "localhost:8011")
GET, HEAD, POST, PUT, DELETE
listen : Specify a port.
host : Specify a host.
server_name : Specify server name.
root : Directory on the server that connects to URI.
index : Default files in the corresponding URI directory.
cgi : The extension of the cgi to use and the location of the launcher. (ex: cgi .py /usr/bin/python3)
default_error_pages : override the error page to display if an error occurs.
location : override the behavior of the server based on the path of URI.
accept_method : Only allowed methods can be handled by the server with the current path.
autoindex : If this option is "on", the 404 page will not pop up, and the list of files in the destination folder will be listed.
client_max_body_size : Maximum acceptable payload size.
return : 301 permanently moved.
This server has been tested in a Chrome environment.
Only HTTP 1.1 is supported.
https://www.freebsd.org/cgi/man.cgi?kqueue
https://www.rfc-editor.org/rfc/rfc7230
https://www.rfc-editor.org/rfc/rfc7231