
A Simple Webserver Implementation in C++
make run
to use default configuration file or
make run PATH_CONFIG=[configuration file]
to use optional configuration file
You can use HTTP methods
- GET, POST, DELETE to ordinary files
- GET, POST to cgi files
You use GET to retrieve files from the server, POST to upload files or echo the messages you sent, and DELETE to remove files you have uploaded.
Additionally, you can execute CGI scripts using GET, or use POST to execute them with the messages you sent.
You can configure the following:
- server names
- listen host:port
- uri routing
- default error pages
- client max body size
- accepted HTTP methods
- HTTP redirection
- alias
- directory listing
- default page
- cgi extension
- file upload directory
This server is compatible with FireFox
make test
There are unit tests and integration tests in test
directory