Profile picture
Broonix Rants
Random UTF-8 characters

Home

27 Jul 2016 in python tips

Simple HTTP Server for any folder via python

Ever need to have create a web server for an arbitrary folder on your Mac? Python provides a super nice and quick one liner to do this:

python -m SimpleHTTPServer 8080

Boom! A running server in whatever folder you typed that command in.

← Continuous Deployment with Spring-boot and Travis
Dependency Hell →
© 2026, Built with Astro by Me. Original design by Dale Anthony.