Giter Site home page Giter Site logo

inet4021lab1's Introduction

Lab 1:
Abreham Getachew - getac021
Natan Teshome - tesho012

Contributions:
Abreham Getachew - Worked on each portion of lab equally.
Natan Teshome - Worked on each portion of lab equally.

Description:
This project is a simple HTTP web server developed in C, designed to comply with the basic principles of HTTP/1.0 as outlined in RFC 1945. 
The server supports handling GET requests for HTML and image files, 
using the standard C socket library for network communications. 
It's structured to serve as an educational tool, demonstrating the fundamentals of web server operation, 
including request handling, content delivery, and basic server configuration.

Files: 
- HTTP GET Requests: Supports handling HTTP GET requests for serving HTML and image content.
- Config File: Uses a `httpd.conf` file for server configuration, allowing customization of the server port, maximum connections, root directory, and default index file.

How to use:
1. Run the compiled executable (`myhttpserver`).
2. Access the server through a web browser or HTTP client, using the specified port and server address.

Config:
The server configuration is specified in the `httpd.conf` file. Below are the configurable parameters:
- `Port`: The port on which the server listens for incoming connections.
- `MaxConnections`: The maximum number of simultaneous connections the server can handle.
- `RootDirectory`: The root directory from which the server serves files.
- `DefaultIndex`: The default index file served when accessing the root URL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.