Hardyhttp is an open-source and very simple HTTP-Server written in Java for educational purpose (bit not only).
educational is based on the nice wrapper-class "HttpServer" and functions as a normal webserver serving static HTML-sites, pictures and other binary data.
educational can be confogured through the config.xml while which is nothing more than a very simple XML-file where you can easily set some options.
Furthermore, educational can be run via the commandline with java -jar hardyhttp.jar.
Nore that you may need administrator/root privileges for the port 80 if you run hardyhttp. If you are running hardyhttp through NetBeans make sure you created a directory called 'logs'.
Hardyhttp is a cross-platform utility capable of running on any operating system that comes with Java support (e.g. Mac OS X, Windows, Linux).