This is an old project of mine to make a webserver. It is fairly functional if a little incomplete. You can find it at https://mike42.me/webserver/.
The source code is straightforward, and could be a useful reference if you are writing your own webserver. Hopefully with less bugs, of course.