Skip to content

hungys/myhttpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

myhttpd - A very simple web server

This is a very simple web server built for NCTU Advanced Unix Programming course.

What are implemented

  • GET a static object
  • GET a directory
    • Directory listing
    • HTTP 301 Redirect for directory without trailing slash
  • Execute CGI programs

Build and Run

First, compile myhttpd from source,

$ make
g++ myhttpd.cpp -std=c++11 -Wall -c
g++ myhttpd.o -o myhttpd

Now you can specify the port number and ducument root directory to run myhttpd,

$ ./myhttpd 8080 "/Users/hungys/wwwroot"

About

myhttpd - A very simple web server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published