Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.04 KB

README.md

File metadata and controls

21 lines (17 loc) · 1.04 KB

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