- create a webserver based on nginx
- the server should be NON blocking
- the server should only have one eventloop (
epoll_wait) and all read / write have to be conducted only after checking I/O - the server should be able to handle
CGI - the server should NOT use child processes apart from CGI
- run
makethen accesshttp://localhost:8888 - access port can be altered by ./config/config.md
in config.md, uploads and cgi-bin root;
location /uploads {
allowed_methods PUT DELETE GET;
upload_store /storage;// Do NOT add . before / ./storage
autoindex on;
}
location /cgi-bin {
allowed_methods GET POST;
cgi_root ./cgi-bin;// Add . before /
}
- run on ubuntu (use vscode devcontainer for mac)
- using epoll hence this will not compile in mac