Download Latest Version mc_httpd.tar.gz (406.9 kB)
Email in envelope

Get an email when there's a new version of mc_httpd

Home
Name Modified Size InfoDownloads / Week
README 2014-02-13 2.6 kB
mc_httpd.tar.gz 2014-02-13 406.9 kB
Totals: 2 Items   409.5 kB 0
/*
 * Copyright (c) 2014 MC_HTTPD 0.9, 颜文泽(robin)
 * All rights reserved.
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *     1 Redistributions of source code must retain the above copyright
 *       notice, this list of conditions and the following disclaimer.
 *     2 Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer in the
 *       documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

name: MC_HTTPD
author: 颜文泽(robin)
Revision: 0.9 

mc_httpd is an HTTP server written by robin.  
The sources and documentation are distributed under the Berkeley Software Distribution license.

HTTP server features:
Supports HTTP/1.1 and CGI/1.1
Multi-line header field(not cgi)
Name-based and IP-based virtual servers
Keep-alive connections support
The GET, HEAD, POST, PUT, DELETE methods

Architecture and scalability:
single-threaded
Shared memory is based on /dev/zero
One master and several worker processes; worker processes run under an unprivileged user

Tested OS and platforms:
linux/i386
FreeBSD/i386

Note:
Unix and unix-like systems only. Program must be run by root. 
If you need to execute cgi program, then you need to include in the rootpath directory necessary libraries and programs.
For example: 
If you want to let the server understand a perl program. then /rootpath/bin/perl and /rootpath/lib/libperl.so must exist. 
Different systems may require the necessary files are different.
Because of economic reasons and other reasons i did not test other systems.
If you find any bugs or have any suggestions, please don't hesitate to contact with me. My email is nnsmgsone@gamil.com.
Source: README, updated 2014-02-13