magnitopic
Back to projects
  • C++
  • Networking
  • HTTP
  • CGI
  • POSIX
  • Team Project
  • 42

WebServ

A fully compliant HTTP/1.1 web server written from scratch in C++. Handles GET, POST and DELETE requests, serves static files with auto-indexing, executes CGI scripts (Python), and supports multiple virtual servers from a single nginx-style config file. I/O multiplexing is done with poll() so a single process manages all connections without threads. Stress-tested with siege.