=====================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.
- Compile with
g++ -o webserver webserver.cpp
Or download from releases - Create a folder called
webserver
in the same folder as the executable - Place all the
.html
files inside thewebserver
folder. This folder is publically accessible. - Start the server with:
sudo ./webserver
from the commandline. (or usesudo ./webserver >> log.txt
to create a log file.) - Stop the server with crtl+C