Skip to content

dinujay10/Web-Server-using-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-Based HTTP Web Server

A lightweight HTTP web server implemented from scratch in C.
This project demonstrates low-level networking, file handling, and basic web server functionality.

✨ Features

  • Handles basic HTTP GET requests
  • Serves static files:
    • HTML
    • CSS
    • JavaScript
    • Images (JPG)
    • PDF documents
  • Modular project structure
  • Access logging
  • Custom Makefile for build automation

📂 Project Structure


.
├── server.c
├── Makefile
├── public/
│ ├── css/
│ │ └── styles.css
│ ├── js/
│ │ └── script.js
│ ├── images/
│ │ └── sample.jpg
│ ├── docs/
│ │ └── sample.pdf
│ ├── home.html
│ ├── about.html
│ └── index.php

🚀 Future Improvements

  • Multithreading
  • Better error handling
  • HTTP POST support
  • Security hardening
  • Directory traversal protection

👤 Author

Dinu Jayatissa BSc (Hons) Computer Science Undergrad – UCSC

About

A lightweight HTTP web server implemented in C, supporting static file serving (HTML, CSS, JS, images, PDFs) with logging and modular structure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors