Skip to content

kirkram/http_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebServ

WebServ is a simple web server implemented in C++. It supports basic HTTP functionalities including GET, POST, and DELETE requests, directory listing, and CGI execution.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/webserv.git
    cd webserv
  2. Build the project:

    make

Usage

To start the server, run the following command:

./webserv [configuration file]

If no configuration file is provided, the server will use the default configuration.

Configuration

Configuration files are located in the conf/ directory. You can specify a custom configuration file when starting the server.

Features

  • GET Requests: Serve static files and directory listings.
  • POST Requests: Handle form submissions and file uploads.
  • DELETE Requests: Delete files from the server.
  • CGI Support: Execute CGI scripts for dynamic content.

About

HTTP 1.1 server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages