Skip to content

sumon-ohid/Webserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

586 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webserv

HTTP web server written in C/C++98. Can serve fully static websites. Pass .config as argument or it will take default webserv.conf. Supports multiple server blocks and location blocks with different server_names and ports.

Supports

cgi-bin (eg: .py, .sh) auto-index error_page client-max-body-size allowed_methods (GET, POST, DELETE) redirection to location redirection to URL and more . . . .

How to run ?

Simply copy commands

  git clone https://github.com/poechlauerbe/webserv.git
  cd webserv
  make
  ./webserv webserv.conf

Contributors

Screenshots

webservHome

🛠 Skills Achieved

C/C++, HTML, CSS, JAVASCRIPT, NGINX, PYTHON etc.

License

Feel free to use and distribute.

MIT License

Test Cases

To test post with curl

curl -F "file=@testUpload.txt" http://localhost:8000/

To check a port process

lsof -t -i :PORT

Siege Stress Test

siege -c 25 -r 1000 http://localhost:8000

About

Creating our own Web-Server in CPP 98, it takes a configuration file as argument, Supports multiple servers, multiple clients, Autoindex, GET, POST, DELETE method, CGI-BIN etc. Outcome: Understanding how a web server works, and how to handle and process request using SOCKET, EPOLL, ACCEPT and many other system calls. It’s a group project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 38.9%
  • CSS 29.7%
  • HTML 19.3%
  • Python 8.9%
  • JavaScript 2.4%
  • Shell 0.5%
  • Makefile 0.3%