How can I set a web server in a specific directory in OSX Mavericks?
This might be overkill, or answering a slightly different question than you asked, but if you have npm, you can 

npm install http-server

and then just 

http-server

from the directory you want to host. http-server will reply with the path hosted and the port it is hosted on e.g.:

Starting up http-server, serving ./foo on port: 8080
Hit CTRL-C to stop the server 

If you launch multiple instances it will increment the port.