Where is the index.html on OSX 10.9 (Mavericks) Apache setup?
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.
Solution 1:
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.
Solution 2:
copy index.html.en to just index.html and you'll be able to see your changed index.html file.
Just figured this out.
Solution 3:
There is a /Library folder in your account at:
/Users/<username>/Library
This is not the folder Apache uses.
There is a 'higher level' Library folder at :
/Library
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...)