A small http server written in C.
Don't use in production environments, don't run as root user, etc.
http-server <port>
Hosts the current working directory (cwd) under the specified port on the system.
- A POSIXy OS (pthread, unistd.h, ...)
- A C compiler
- CMake
- Make
git clone
cmake . -B bin
make -j $(nproc) -C bin
- Binary is
bin/http-server
With ~/.local/bin
or similar in your path, just copy or symlink http-server
there.
I'm not liable for any damage caused by this program or any of its components, not responsible for anything you do with it, and there's no warranty of any kind on it. Please, for the love of god, don't actually use this as a http server. It's just a hobby project.