phpmacoseclipse-pdt

Where is localhost folder located in Mac or Mac OS X?


I just started developing PHP projects on my mac (using PDT) and was wondering where localhost is located? How does Mac OS X serve websites, I haven't changed any settings during the installation of PDT.


Solution

  • There are actually two place where mac os x serves websites by default:

    1. /Library/WebServer/Documents --> http://localhost
    2. ~/Sites --> http://localhost/~user/