Where there is python there's an HTTP Server

Sometimes you need an HTTP server and installing nginx is not worth-it or possible. You may need-it right now to copy that huge file that will bloat scp. If you have python installed you've got one, you don't even need to write a script.

The following command will start serving your current directory on port 8000.

On python 2.x $ python -m SimpleHTTPServer 8000

On python 3.x $ python -m http.server 8000

Works like a charm on my WD home nas.

© 2019 Joan Pérez i Cauhé. All rights reserved.