Webserv is a HTTP/1.1 server written in C++98.
The objective of this project is to create a HTTP web server. It compliant with RFC and implements Get, Post and Delete methods. So it can serve static web pages, dynamic pages thanks to CGI (PHP, python). It is fully configurable though a config file, inspired by Nginx format.
# Compile the sources
make all
# Run the server
./webserv [config_file]
See example of configuration in 'Configs' directory
- [GET, POST, DELETE] HTTP methods
- A configuration file given as an argument
- Php CGI
- Serve a fully static website
- Default error pages if none are provided
- File uploading
- Accurate HTTP response status codes
- Understand chunked requests
- Listen to multiple ports
- Run multiple sites
As bonus
- Support cookies and session management
- Python CGI
- other HTTP methods