Skip to content

masaruo/webserv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webserv project at 42Tokyo

  • 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

access

  • run make then access http://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 /
    }

environment

  • run on ubuntu (use vscode devcontainer for mac)
  • using epoll hence this will not compile in mac

About

42Tokyo's webserv project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published