You need only one tiny command to start a web server from any directory through OS X's terminal. Just navigate to the directory you want to use and enter the following command:
python -m SimpleHTTPServer 8000
You may want to change the port if you already have something running on 8000.