As the title suggests, this is a web server that serves up static web pages and other resources to web browsers or other clients.
This is a hobby project we did as a part of learning networking and socket programming in C++ and WIN32 api for windows.
- C++ (MSVC)
- Win32 API
- sockets
- threads
- C++ STL
- Serve up static web pages
- serve up media (audio, video, images)
- Serve nested pages in I-Frame
- Checks for unavailable resources
- easy to get up and running with for simple uses
- easy to customize and build up on
- Clone this repository
- open the .sln file in visual studio 2019
- in
main.cpp
, change the#define CONTENT_BASE_DIR
to the folder which you would like to serve - specify the
#define FILE_NOT_FOUND_PATH
file path to show when an unavailable resource is requested - Build the solution
- the built binary is inside the
bin
folder of the project directory