I need an http server to serve up static content on localhost.
It needs to meet the following conditions:
- easy to install, minimal configuration, just fire up from a directory and that's it
- supports OSX
- small memory footprint
Apache is built into OSX an can easily be enabled.
See http://macdevcenter.com/pub/a/mac/2001/12/07/apache.html for some basic instructions.
You can use Python to run a simple http server. From the directory that you want to serve, run the following...
python -m SimpleHTTPServer
See this Linux Jornal article for more info.
You can use MAMP.
It comes with Apache, PHP and MySQL, and sets it all up with a few clicks. Note that you should never use MAMP in a production environment; PHP & MySQL settings are optimal for development but there are some security vulnerabilities.