Webserv is a lightweight HTTP server implementation written in C++. It aims to provide a simple and efficient web server that can handle basic HTTP requests and serve static content.
-
HTTP/1.1 Support: Webserv supports the HTTP/1.1 protocol, allowing it to handle various HTTP methods and headers.
-
Static Content Serving: The server can serve static content, such as HTML, CSS, JavaScript, and image files.
-
Configurable: Webserv is configurable through a simple configuration file, allowing users to specify server settings, document roots, and more.
- C++98 compiler
- Make
Webserv includes support for CGI (Common Gateway Interface), allowing you to dynamically generate content and execute scripts on the server side.
CGI (Common Gateway Interface) is a standard protocol for web servers to execute programs or scripts on behalf of a user, generating dynamic content. With CGI support in Webserv, you can leverage the power of server-side scripting languages to enhance the functionality of your web applications.
git clone https://github.com/yarutiun/Webserv.git
cd Webserv
make
./webserv
-
Calling the executable independently (Default config will be chosen).
-
Calling the executable + config file of your choice.
After launching your server, you can access it in your web browser by searching for http://localhost:8080
.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.