Micro HTTPd Patches

micro_httpd made by ACME Labs is a very, very small webserver that runs inside of inetd. I use it on my laptop where I do not want to have the overhead of running another server, but do occasionally need low band width web serving.

I use xinetd, and this configuration file:

# micro_httpd Web Server

service http
{
	port            = 80
	socket_type     = stream
	wait            = no
	user            = root
	cps		= 100 5
	# Location of Binary
	server          = /usr/sbin/micro_httpd 
					
	# Location of Web Pages
	server_args     = /home/www
}

I also had problems since micro_httpd uses file name extensions to match files a limited number of file types. It was reporting the wrong MIME type for files it wasn't programmed for, such as PDF files. I have created a patch to use the file to identify the MIME types of almost any file type. It also fixes some install ugliness in the Makefile and make the HTML include the document type.

Mon, 8 Dec 2008 22:26:15 -0500 View History