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.

  • 1
    Do you have homebrew installed? MAMP? Server.app? In fact can you just give us a list of what you do have installed? It sounds like you may not be using the default apache for os x. – Camden Narzt Sep 23 '14 at 3:30
  • 1
    have you restarted the server? apachectl restart – makepkgnotwar Mar 29 '15 at 5:13

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.

  • 1
    Thanks Thomas, although I created a new html file, and still get the "It works!". It has to be somewhere else, since no files even existed in that folder. – Mark Kadlec Sep 22 '14 at 2:49
  • Is there a folder in the /Library/Server/Web/Data/Sites/ path called Default? – Thomas Jones Sep 23 '14 at 13:35

copy index.html.en to just index.html and you'll be able to see your changed index.html file.

Just figured this out.


There is a /Library folder in your account at:


This is not the folder Apache uses.

There is a 'higher level' Library folder at :


and this will hold your apache Documents folder.

You can navigate 'higher' than your user folder by pressing down the Command key while clicking on the name of the folder that is centered at the top of the Folder window.

(Late answer, but it may be useful to someone...)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .