You asked for a book, but I'm going to stretch that a little and offer some lecture notes from a short course I gave years ago. This is a lecture on how web servers work. Maybe there's still some useful information? (Apologies in advance for the terrible presentation.)