Skip to content

NotCampeur/webserv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webserv

A 42 project about HTTP

⚠️ Warning: It is educational project.

⚠️ Warning: You can take inspiration from it but don't copy / paste what you don't understand.

Install

Two way to use it :

  • run make if you want to launch the server on your computer or if you don't have docker installed.
  • From the root of the software, launch ./starters/build_run.sh. You will then be in a docker container.
    To launch the server inside the container you can do a classic make,
    or launch ./starters/start_webserv.sh ressources/config/worpress.conf to run a server where wordpress and mysql is running.

Content

  • A simple HTTP server.
  • There is a '--help' option which will guide you.
  • There is a default configuration file fully commented ressources/config/webserv.conf.
  • The accepted methods are GET POST HEAD and DELETE.
  • You will find a Dockerfile and scripts to launch the server inside of a container.

Resources

CGI:

Reactor pattern:

💤 TODO 💤

  • Nothing to be done.

💥 Known bugs.. I mean features 💥

  • No bugs has been reported.