Cain Manor

Your Guide To All Things Cain™

Simple HTTP server in OS-X

If you need a quick way to share a direc­tory
Open a ter­mi­nal win­dow, change to the direc­tory you want to share and type

python -m SimpleHTTPServer 8080

It’s even bet­ter as an alias.

alias serve='echo Serving ${PWD} from ${HOSTNAME}:8080$;python -m SimpleHTTPServer 8080'

From Mac­world

Comments are closed.