RanniSch / webserv

0 stars 2 forks source link

WEBSERVER C++ Python HTML5

Webserver is a 42 Wolfsburg curriculum project which is written using C++, Python for CGI scripts and HTML for basic webpages.

What is Webserver?

The project is about writing an HTTP server in C++ 98 and learning about the primary function of a web server, which is to store, process and serve webpages to to clients. Communication between client and server is done using the Hypertext Transfer Protocol (HTTP) --> listening to clients HTTP requests for files and returning them back to the client.
The web browser initiates communication by requesting a specific resource using HTTP, and the server responds with the content of that resource or an error message if it is unable to do so.

How does the Client acces the webserver?

Client can access the webserver using a localhost and the port that is specified by the webserver. For it to work the webserver first has to be running in the background.

How to run the webserver

Prerequisites

Configuration File

In the configuration file, you can

Various configuration files and default base files for testing and demonstrating each feature are provided.

webserv-1

webserv-2

webserv-3

webserv-4

webserv-5