Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.
/ mhttpd Public archive

A simple C-based HTTP daemon (so I can practice C).

Notifications You must be signed in to change notification settings

benjaminoakes/mhttpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mhttpd

A minimal, C-based HTTP server.

My goal is to keep it simple and only handle GET requests. I'm building it to practice C and teach myself more about low level networking.

Usage

Usage: ./mhttpd [--help] [port]

Serve a directory over HTTP

   --help      Show this help text.
   port        Port number.  Default: 80 (requires privileges)

Example:

   ./mhttpd 3000

Right now, it just serves up "public/index.html" in response to any request.

Building

After you have the source (e.g., from downloading a tarball via GitHub), just do the standard steps:

./configure
make

Currently, there is no "make install" task, but you can mv the resulting "mhttpd" executable anywhere you'd like.

About

A simple C-based HTTP daemon (so I can practice C).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published