Simple HTTP server from the command line


Tested under Debian Lenny and Mac OS 10.6.3

I’ve been using this one for a year or so but failed to share it until now..

python -m SimpleHTTPServer 8000

This will start a simple HTTP server listening on port 8000. Python needed, of course.

Run that command from the folder you want to share.

By the way if William from Paris is reading this, thanks for the book :-)

Thanks for reading this post!

Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!