A simple http server supporting GET requests.
- C 97.5%
- Makefile 2.5%
|
Anton Kling
c186bfd685
This removes all calls to malloc, calloc etc in the program. |
||
|---|---|---|
| config.def.h | Rewrite of smol_http to use polling and improve code quality. | |
| LICENSE | Deleted AGPL and added Zero Clause BSD License. | |
| Makefile | Make sure to make the installed binary a setuid binary. | |
| README.md | Improve markdown | |
| smol_http.c | Make a array stack allocated. | |
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.