Last Updated: February 25, 2016
·
1.564K
· backa

SimpleHTTPServer on Python3

Serving a directory via http is sometimes very handy for web development.

Using python 2, my good old friend

python -m SimpleHttpServer [port]

did just that.

Today I have learned that it has a new name unter python 3:

python -m http.server [port]

See the note on docs.python.org