Webserv is a lightweight HTTP server written in C++, inspired by Nginx. It was developed as part of a project at 42 Lyon.
- Serve static files.
- Handles HTTP requests with support for basic methods like GET, POST, DELETE, PUT, HEAD.
- Configurable access log file.
- CGI support for dynamic content generation.
- Multi-server configuration with independent settings for each server.
- Chunked transfer encoding.
- Directory listing (autoindex).
- Custom error pages.
- A C++ compiler supporting the C++98 standard.
- GNU Make.
-
Clone the repository:
git clone git@github.com:Ofacy/webserv cd webserv -
Build the project:
make
-
Run the server with a configuration file:
./webserv <config_file>