Last Updated: February 25, 2016
·
706
· endel

Simple static HTTP server with Python

It's the fastest way when you just need to access some file via HTTP, without any configuration.

$ cd some/public/path
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000

1 Response
Add your response

I found this really useful when developing a webgl app. gl.texImage2D throws a SECURITY_ERR if you loaded up index.html from file://.

over 1 year ago ·