If you want to stay secure, then I suggest you don't try running the program.
Web server I tried to implement in High school. I knew how to write C, read man pages and what RFCs where.
It doesn't properly follow the HTTP/1.0 standard and I tried to avoid most obvious security flaws. But it should still work.