Hicham-BelHoucin / websrv

This project is here to make you write your own HTTP server. You will be able to test it with a real browser. HTTP is one of the most used protocol on internet. Knowing its arcane will be useful, even if you won't be working on a website.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Websrv

This project is here to help you write your own HTTP server. You will be able to test it with a real browser. HTTP is one of the most widely used protocols on the internet. Understanding its intricacies will be useful, even if you won't be working on a website.

What is a web server?

How it Works

Web servers follow a client-server model. In this structure, one program, also known as the client, requests a resource or service from another program, the server.

When a web user wants to load the content of a website, their web browser sends an HTTP request to the web server, which then responds with an HTTP response.

Web Server

Usage

Build the project using: make

Run the program using: ./Webserv [your config file] or ./Webserv to use the default config file.

To configure the server, you will need to modify config.conf, which is located in the /conf directory, or create a new config file and pass it as an argument.

This server is compatible with Chrome only!

Tech Stack Used

Shell C++ PHP HTML C Makefile Python

Contributors

Useful Resources

About

This project is here to make you write your own HTTP server. You will be able to test it with a real browser. HTTP is one of the most used protocol on internet. Knowing its arcane will be useful, even if you won't be working on a website.


Languages

Language:C++ 81.9%Language:PHP 6.3%Language:HTML 5.6%Language:C 1.9%Language:Makefile 1.5%Language:Python 1.1%Language:CSS 1.0%Language:JavaScript 0.6%Language:Hack 0.0%