Skip to content

Simple, minimal, single-threaded and lightweight HTTP webserver written in C++

License

Notifications You must be signed in to change notification settings

Simon946/simple-HTTP-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

simple HTTP webserver

Simple, minimal, single-threaded and lightweight HTTP webserver written in C++ Only Linux is supported.

=====================WARNING===========================================
This code probably has bugs and security vulnerabilities! Please be careful and do not handle sensitive data with the server. The HTTP protocol is used so anyone can see (and modify) the transmitted data. I am in no way responsible for damages caused by the software in this repository.

Usage

  1. Compile with g++ -o webserver webserver.cpp Or download from releases
  2. Create a folder called webserver in the same folder as the executable
  3. Place all the .html files inside the webserver folder. This folder is publically accessible.
  4. Start the server with: sudo ./webserver from the commandline. (or use sudo ./webserver >> log.txt to create a log file.)
  5. Stop the server with crtl+C

About

Simple, minimal, single-threaded and lightweight HTTP webserver written in C++

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages