A minimalist HTTP server written in C that serves an index.html file on port 8080.
- GCC compiler
- POSIX-compliant system (Linux, macOS, etc.)
index.htmlfile in the same directory as the server
gcc -Wall server.c -o server -pthread./servermake
make clean- Place an
index.htmlfile in the same directory as the server. - Open a browser and navigate to
http://localhost:8080.
- The server handles GET requests for
/and returnsindex.html. - Other requests receive a 404 response.
- Uses POSIX threads for concurrent client handling.
- Ensure port 8080 is free.
