Skip to content

Ofacy/webserv

Repository files navigation

Webserv

Webserv is a lightweight HTTP server written in C++, inspired by Nginx. It was developed as part of a project at 42 Lyon.

Features

  • 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.

Getting Started

Prerequisites

  • A C++ compiler supporting the C++98 standard.
  • GNU Make.

Installation

  1. Clone the repository:

    git clone git@github.com:Ofacy/webserv
    cd webserv
  2. Build the project:

    make
  3. Run the server with a configuration file:

    ./webserv <config_file>

Authors

About

A basic HTTP server with CGI and static files support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors