goose is a cli-webserver intended to be a drop-in replacement for python2 -m SimpleHTTPServer
.
It comes with some nice things like being able to easily specify webroot.
To prevent accidental exposure it also binds to 127.0.0.1
by default.
Here is some examples.
$ goose # serve from pwd
$ goose ../root # serve from somewhere else
$ goose -p 8090 # serve on custom port
You may find the sources at https://github.com/victorhaggqvist/goose. Alternatively, goose is available from AUR.
$ pacaur -S goose-bin
Header by Joseph Barrientos, https://unsplash.com/photos/JcHjWNQzOjs.