$ npm install -g http-server $ http-server -p 8000 -a foo.bar.com Would serve PWD at http://foo.bar.com/