Last Updated: February 25, 2016
· mvmaasakkers

A quick and simple webserver in Mac OS X

To start a simple webserver on Mac OS X simply start terminal, go to the directory you want to start the webserver from (which will be the document root) and use the following command:

python -m SimpleHTTPServer 8080

That directory will be available in the browser at http://localhost:8080

2 Responses
Add your response


Same can be done with PHP:
php -S localhost:8080

over 1 year ago ·

in Ruby: ruby -run -e httpd . -p 8000

Here is a list actually

over 1 year ago ·