Skip to content

labcoder/simple-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple webserver

This example of a simple webserver is inspired by IBM's really small webserver example, nweb.


Uses

This is obviously not meant to be used for real deployment, and is just out here in case someone wants to see a small c-based webserver in use. Basic socket use examples are in here from nweb. Also included are two small pages to serve up.


Example

Run the Makefile

make

You run the server like this:

./server [port] [location to serve pages from] [& - to run in background]

For example, to run it on port 8080, you'd do something like this:

./server 8080 ./ &

About

A simple http webserver in C - inspired by IBM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages