Last Updated: February 25, 2016
·
458
· abahgat

Serve local files over HTTP with one console command

Open a Terminal window and go to the directory containing the files you want to serve and run:

python -m SimpleHTTPServer

or, if you are using Python 3,

python -m http.server

--
http://blog.abahgat.com/2011/12/13/http-server/