A simple java HTTP server. Understand GET and HEAD. It will do directory list as well.
I first write it as an exercise for leaning JAVA NIO in late 2010,
python -m SimpleHTTPSever [port]
is very handy, but a little slow for
me, so I use this as a replacement for daily use.
- install maven
mvn package
./script/run.sh [port] [www-root]
- More MIME mapping
- Delivering large file