osx - "Ad-hoc webserver" for static files on UNIX/MacOSX? -


Is there any small webserver that I can call from the command line that only the local file system and HTTP Works through?

I should be able to do something like this:

  $ cd ~ / sites / mysite $ service 10.0.1.1 8080  

It listens at 10.0.1.1:8080 and provides the files from the current directory (".") - no PHP, ASP or none of it

If you have a python installed:

/ P>

  $ python -m Simple HTTP Protocol HTTP.0.0.0 HTTP service on port 8000 ... < / Code> 

Comments