Skip to content

JeeNeeUhs/webserv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

111 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webserv

A non-blocking web server written from scratch in C++98, implementing a subset of the specifications defined in RFC 7230 and related RFCs.

Here are some notable features:

  • configurable request body size and timeout limits
  • CGI 1.1 support
  • file uploads with configurable upload directories
  • directory listing
  • per-route configuration
  • custom error pages

Installation

Requirements

  • A Unix-like system
  • A C++ compiler with C++98 support like clang++ or g++
  • make
  • siege for stress test (optional)

Build

git clone git@github.com:JeeNeeUhs/webserv.git
cd webserv
make

Usage

./webserv -h 
Usage: webserv [OPTION]... [FILE]

Options:
  -d, --debug      enable debug output
  -h, --help       print this message

Arguments:
  FILE             optional config file path

If no configuration file is provided, program uses ./config/default.conf by default. See example.conf for example.

References

References used for this project:

About

A custom, non-blocking HTTP/1.1 server.

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Contributors