Http Here!
Announcing httphere, a tiny ruby command line utility that simply serves files for what they're worth, from the directory where you run the command.
It's really simple to use, just change directory to the one you want to serve files from, and run "httphere". It tries to default to port 80, but you'll probably need to be sudo to do port 80. Or you can run on any port by adding the -p PORT option:
cd ~/mywebsite
httphere -p2244
# open web browser to http://localhost:2244/index.html,
# - assuming there's an index.html right here. :)What do you need it for? Well, most of the time you may not need it, but you might as well install it because there's no telling when you'll want it. When you'd rather let your browser use HTTP to look at an html file on your filesystem instead of using file://... seriously, file:// will mess with your resource urls that start with a slash (/). Use httphere and you won't have that problem.Install
sudo gem install httphereEnjoy!