Compile:
gcc -o server server.c
./serverYou should see:
Server running on http://localhost:8080
Now open your browser and go to:
http://localhost:8080/- You should see "Hello from my C server!"http://localhost:8080/about- Should show the about pagehttp://localhost:8080/anything-else- Should return a 404
You can also test with curl:
curl -v http://localhost:8080/