1
0
Fork
You've already forked smol_http
0
A simple http server supporting GET requests.
  • C 97.5%
  • Makefile 2.5%
Find a file
Anton Kling c186bfd685
Make a array stack allocated.
This removes all calls to malloc, calloc etc in the program.
2023年02月26日 18:05:08 +01:00
config.def.h Rewrite of smol_http to use polling and improve code quality. 2022年12月08日 02:59:02 +01:00
LICENSE Deleted AGPL and added Zero Clause BSD License. 2022年02月01日 23:28:44 +01:00
Makefile Make sure to make the installed binary a setuid binary. 2022年03月04日 22:08:51 +01:00
README.md Improve markdown 2022年12月08日 03:01:28 +01:00
smol_http.c Make a array stack allocated. 2023年02月26日 18:05:08 +01:00

smol_http

A simple http server supporting GET requests.

Usage

Clone this repository and compile the software.

git clone https://github.com/elttil/smol_http
cd smol_http
make
make install # This will install smol_http to /usr/bin

The applications default values can be configured via changing the values in the config.h file and recompiling the application.

It is also possible to change values using the command line arguments

  • -p port

  • -d root directory

Security

The application is a seteuid binary and must not be ran as root but instead should be ran as a low privilege user that the application will later drop privileges to.

Attribution

Attribution is under no circumstance required but is appreciated. Read LICENSE for more information.