MacOS – Where is the index.html on OSX 10.9 (Mavericks) Apache setup

apachemacos

I've started up Apache on my Mac and get the "It works!" message, but I have no idea where that file is.

I've checked the httpd.conf file and the location listed is:

DocumentRoot "/Library/WebServer/Documents"

Yet, when I go to the /Library/WebServer/Documents folder, it is empty!

This one is driving me crazy, any help would be appreciated.

Best Answer

There should be 3 files in /Library/WebServer/Documents:

  • index.html.en
  • PoweredByMacOSX.gif
  • PoweredByMacOSXLarge.gif

If these files are missing, it really shouldn't matter.

As soon as you create your own HTML file and place it in that folder, the "It works!" message should be replaced with your new index.html file.

Hope this helps.