descriptionminimal http server for linux
ownersylvain.bertrand@legeek.net
last changeThu, 24 Nov 2022 18:41:54 +0000 (24 18:41 +0000)
content tags
add:
README
This is another _really_ minimal ISO C90-ish http server for linux:
 - single-threaded (1 connection = 1 request)
 - source configured (look for the configuration section in the code)
 - epoll-ed
 - signalfd-ed (i.e. synchronous)
 - direct syscalls (no libc)

Only HEAD and GET methods.

To map a content-type to a file "A", add a file "A.mime" containing the
content-type.
**BIG FAT WARNING** vim editor will add a spurious 0x0a '/n' line feed at the
end of the mime file.

Will chroot in the configured path once started.

Don't forget you need to give root priviledges to the server in order to listen
on port 80.

Look in ulinux/patterns/network_server if you want to ramp up this server with
cloning, etc.
shortlog
2022-11-24 Sylvain BERTRANDport to arm64master
2016-09-01 Sylvain BERTRANDtypo
2016-08-31 Sylvain BERTRANDipv6
2016-05-06 Sylvain BERTRANDfix exit codes
2016-04-29 Sylvain BERTRANDwarning about spurious line feed with text editors
2016-04-29 Sylvain BERTRANDreally bad advice fixed
2016-04-28 rootcontent-type support
2016-04-20 Sylvain BERTRANDtypo fix, thx Florian Bruhin from suckless
2016-04-20 Sylvain BERTRANDhandle other side closed connection (0 bytes read)
2016-04-20 Sylvain BERTRANDworking enough for my personnal use
2016-04-20 Sylvain BERTRANDInitial commit
heads
17 months ago master