Skip to content

gkrtjd99/Webserv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project has been created as part of the 42 curriculum by hakseong.

Webserv

Description

Webserv is a custom HTTP server written in C++ 98. The objective of this project is to implement a functional web server that can handle HTTP requests and serve static websites, as well as execute CGI scripts.

Key features include:

  • Non-blocking I/O operations managed by a single poll(), kqueue(), epoll(), or select().
  • Serving static files and directory listings.
  • Support for HTTP GET, POST, and DELETE methods.
  • File uploads from clients.
  • Configuration via a configuration file (similar to NGINX) to set up ports, error pages, routes, and CGI executions.
  • Execution of CGI scripts based on file extensions (e.g., .php, .py).

Instructions

To compile the server, simply run:

make

Run the server by providing a configuration file:

./webserv [configuration_file]

You can then test the server using a standard web browser, curl, or telnet.

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages